]> gitweb.factorcode.org Git - factor.git/commitdiff
x11: convert XSupportsLocale return value to factor bool before testing (bug reported...
authorJoe Groff <arcata@gmail.com>
Thu, 13 May 2010 01:07:33 +0000 (18:07 -0700)
committerJoe Groff <arcata@gmail.com>
Thu, 13 May 2010 01:07:33 +0000 (18:07 -0700)
basis/x11/x11.factor

index 67c94c88ead6b3777a2e388eed7cdf6de1a562ff..d32eaca47e8e518d7ded11220f957380605be9ed 100644 (file)
@@ -3,6 +3,7 @@
 USING: alien.strings continuations io
 io.encodings.ascii kernel namespaces x11.xlib x11.io
 vocabs vocabs.loader ;
+FROM: alien.c-types => c-bool> ;
 IN: x11
 
 SYMBOL: dpy
@@ -11,7 +12,7 @@ SYMBOL: root
 
 : init-locale ( -- )
    LC_ALL "" setlocale [ "setlocale() failed" print flush ] unless
-   XSupportsLocale [ "XSupportsLocale() failed" print flush ] unless ;
+   XSupportsLocale c-bool> [ "XSupportsLocale() failed" print flush ] unless ;
 
 : flush-dpy ( -- ) dpy get XFlush drop ;