G_BROKEN_FILENAMES과 GTK_IM_MODULE 환경변수는 무엇에 쓰는 것

jagalchee의 이미지

현재 X 를 띄우고, fluxbox를 사용중에 잇습니다...

여러 전문가들의 .xsession 파일에 보면 G_BROKEN_FILENAMES=1, GTK_IM_MODULE=hangul2 혹은 GTK_IM_MODULE=xim 이란 옵션이 있던데, 이게 도통 무엇을 뜻하는지 알 수 없네요..

아시는 분은 이 환경변수가 무엇 때문에 왜 사용하는건지가 궁금합니다. 그리고 그 사용법도 역시 궁금하구요..

saxboy의 이미지

Quote:
* The assumption of GLib and GTK+ by default is that filenames on the
filesystem are encoded in UTF-8 rather than the encoding of the locale;
The GTK+ developers consider that having filenames whose interpretation
depends on the current locale is fundamentally a bad idea.

If you have filenames encoded in the encoding of your locale, then
you may want to set the G_BROKEN_FILENAMES environment variable:

G_BROKEN_FILENAMES=1
export G_BROKEN_FILENAMES

Best integration of GTK+-2.0 with the environment is achieved by
using a UTF-8 locale.

gtk-2.0 faq에서 잘라붙입니다.

GTK_IM_MODULE은 gtk 기본 입력기를 설정하는 환경변수입니다. nabi는 xim이고 imhangul은 gtk의 im-module이지요.