Follow-up Comment #30, bug #12910 (project mldonkey):
@JongAm Park
you didn't get me.
LC_CTYPE should change **ONLY** the LANGUAGE ('EN', 'KO', ...) detected by
mlnet **NOT** the CODESET ('US-ASCII', 'UTF-8', ...).
Thus if you change LC_CTYPE, does the current *LANGUAGE* detected by melnet
changed from 'EN' to 'KO'?
For the CODESET we have to patch the source src/utils/lib/charsetstubs.c, thus
mlnet will detect 'UTF-8' by default on MACOS.
value
ml_locale_charset(void)
{
const char *str;
#ifdef MACOS
str = "UTF-8";
#else
#ifdef HAVE_LOCALE_CHARSET
str = locale_charset ();
#else
setlocale(LC_CTYPE, "");
str = nl_langinfo(CODESET);
#endif /* HAVE_LOCALE_CHARSET */
#endif /* MACOS */
if (!str)
raise_error ();
return (copy_string ((char*) str));
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12910>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Mldonkey-bugs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/mldonkey-bugs