Background information:
I use Mac OSX Yosemite.
I've installed gtk+ using brew install gtk+ and fixed the errors using export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig.
I've build my program using make but when I try to run it I get a warning like this:
(process:16182): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Problem: I cannot find any solutions for OS X for this particular problem.
What I've learnt so far:
In this thread (Gtk-WARNING **: Locale not supported by C library. while using several Python modules (mayavi, spectral)) they suggests using:
but I've got no idea how python can be related to my problem (my program is written in C - the same applies toipython --pylab=wxinstead ofipython --pylab=osxgtk+I guess)You can find a lot of threads on this issue like this one: (Gtk-WARNING **: Locale not supported by C library. when starting apps from the commandline) but they mainly refer to Linux and/or Ubuntu.
Most of the answers use a command like this sooner or later:sudo dpkg-reconfigure localesBut there is no
dpkgon OS X.
The issue here is that the environment variable
LANGis not set, because I've mixed settings for Polish and English in the Language and Region section in System Preferences.Quoting @KenThomases who helped me a lot with this problem:
You can read the in-depth solution here:
Is it bad that LANG and LC_ALL are empty when running `locale -a` on OS X Yosemite?