Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 242 Vote(s) - 3.61 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale." on OS X

#1
### 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 (

[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.
Reply

#2
The issue here is that the environment variable `LANG` is not set, because I've mixed settings for Polish and English in the *Language and Region* section in *System Preferences*.

Quoting [@KenThomases](

[To see links please register here]

) who helped me a lot with this problem:
>There's not going to be any C library locale defined for the English language in Poland (i.e. en_PL.UTF-8). That's why Terminal is not setting LANG for you in your shells, even though you have "Set locale environment variables on startup" enabled.

You can read the in-depth solution here:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through