mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #12910] File name after commiting is changed to som


From: su_blanc
Subject: [Mldonkey-bugs] [bug #12910] File name after commiting is changed to someting like "______________________"
Date: Wed, 6 Jul 2005 00:48:16 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]