mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Tell gettext that we want to have the messages in the UTF-8 encoding, to
avoid the extra conversion that gettext would otherwise perform (from the message encoding which is UTF-8 to the current locale encoding).
This commit is contained in:
@@ -43,6 +43,7 @@ WMInitializeApplication(char *applicationName, int *argc, char **argv)
|
|||||||
bindtextdomain("WINGs", getenv("NLSPATH"));
|
bindtextdomain("WINGs", getenv("NLSPATH"));
|
||||||
else
|
else
|
||||||
bindtextdomain("WINGs", LOCALEDIR);
|
bindtextdomain("WINGs", LOCALEDIR);
|
||||||
|
bind_textdomain_codeset("WINGs", "UTF-8");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_WINGS_progname = argv[0];
|
_WINGS_progname = argv[0];
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ main(int argc, char **argv)
|
|||||||
bindtextdomain("WPrefs", getenv("NLSPATH"));
|
bindtextdomain("WPrefs", getenv("NLSPATH"));
|
||||||
else
|
else
|
||||||
bindtextdomain("WPrefs", LOCALEDIR);
|
bindtextdomain("WPrefs", LOCALEDIR);
|
||||||
|
bind_textdomain_codeset("WPrefs", "UTF-8");
|
||||||
textdomain("WPrefs");
|
textdomain("WPrefs");
|
||||||
|
|
||||||
if (!XSupportsLocale()) {
|
if (!XSupportsLocale()) {
|
||||||
|
|||||||
@@ -778,6 +778,7 @@ real_main(int argc, char **argv)
|
|||||||
bindtextdomain("WindowMaker", getenv("NLSPATH"));
|
bindtextdomain("WindowMaker", getenv("NLSPATH"));
|
||||||
else
|
else
|
||||||
bindtextdomain("WindowMaker", LOCALEDIR);
|
bindtextdomain("WindowMaker", LOCALEDIR);
|
||||||
|
bind_textdomain_codeset("WindowMaker", "UTF-8");
|
||||||
textdomain("WindowMaker");
|
textdomain("WindowMaker");
|
||||||
|
|
||||||
if (!XSupportsLocale()) {
|
if (!XSupportsLocale()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user