07-26-2023, 05:43 PM
### 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:
1. In this thread (
but I've got no idea how python can be related to my problem (my program is written in C - the same applies to `gtk+` I guess)
2. 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](
sudo dpkg-reconfigure locales
But there is no `dpkg` on OS X.
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:
1. In this thread (
[To see links please register here]
) they suggests using: <blockquote> `ipython --pylab=wx` instead of `ipython --pylab=osx`</blockquote>but I've got no idea how python can be related to my problem (my program is written in C - the same applies to `gtk+` I guess)
2. 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](
[To see links please register here]
)) but they mainly refer to Linux and/or Ubuntu. <br>Most of the answers use a command like this sooner or later:sudo dpkg-reconfigure locales
But there is no `dpkg` on OS X.