ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.27 by pcg, Fri Feb 13 13:28:17 2004 UTC vs.
Revision 1.28 by pcg, Sat Feb 21 20:33:40 2004 UTC

806rxvt_term::set_locale (const char *locale) 806rxvt_term::set_locale (const char *locale)
807{ 807{
808#if HAVE_XSETLOCALE || HAVE_SETLOCALE 808#if HAVE_XSETLOCALE || HAVE_SETLOCALE
809 free (this->locale); 809 free (this->locale);
810 this->locale = rxvt_strdup (setlocale (LC_CTYPE, "")); 810 this->locale = rxvt_strdup (setlocale (LC_CTYPE, ""));
811 rxvt_set_locale (this->locale);
812 mbstate.reset ();
811#endif 813#endif
812#if HAVE_NL_LANGINFO 814#if HAVE_NL_LANGINFO
813 free (codeset); 815 free (codeset);
814 codeset = strdup (nl_langinfo (CODESET)); 816 codeset = strdup (nl_langinfo (CODESET));
815 enc_utf8 = !STRCASECMP (codeset, "UTF-8") 817 enc_utf8 = !STRCASECMP (codeset, "UTF-8")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines