Gtk.jl
Gtk.jl copied to clipboard
Deprecated code on MAC OS El Capitan
Deprecated code on MAC OS El Capitan when loading Package
(process:22119): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
2015-11-23 20:58:23.018 julia[22119:15706739] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
what locale is your system configured to use?
Locale: English Encoding: Unicode (UTF-8)
I get the same message when trying GTK out on OSX.
Googling reveals 2+ approaches for a fix, both of which causes potential issues: Either: sudo apt-get install language-pack-XX-base, or to try and set the locale variables for shells. I´m a bit too green on OSX and in general with GTK to start hacking like this; the main point for me is figuring out how GTK and dependent packages works on Windows.
Here is my OSX locale in a console after quitting Julia (the system is otherwise Norwegian):
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
Not wishing to start "hacking" on OSX, where I´m even farther from understanding the inner workings, I have instead tried BinDeps.debug("Gtk") and Pkg.build() a few times. I´d rather read a book on the subject of widgets and so forth. Some more background knowledge seems to be necessary if I´m going to make a live graphics / calculation environment with Julia.
The same thing has been happening to me as well for a while (I'm on mac High Sierra now). The issue seems to be that on the mac I had incompatible settings for language and region (language = English, region = Portugal), so Gtk couldn't figure out what it the language on the machine. Setting region to US seems to fix it (on system settings/Language and Region). Maybe Julia could somehow default to en_US.UTF-8 without warning?