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.32 by pcg, Sun Feb 22 08:28:36 2004 UTC vs.
Revision 1.33 by pcg, Sun Feb 22 10:37:54 2004 UTC

796void 796void
797rxvt_term::set_locale (const char *locale) 797rxvt_term::set_locale (const char *locale)
798{ 798{
799#if HAVE_XSETLOCALE || HAVE_SETLOCALE 799#if HAVE_XSETLOCALE || HAVE_SETLOCALE
800 free (this->locale); 800 free (this->locale);
801 this->locale = rxvt_strdup (setlocale (LC_CTYPE, "")); 801 this->locale = rxvt_strdup (setlocale (LC_CTYPE, locale));
802 SET_LOCALE (this->locale); 802 SET_LOCALE (this->locale);
803 mbstate.reset (); 803 mbstate.reset ();
804#endif 804#endif
805#if HAVE_NL_LANGINFO 805#if HAVE_NL_LANGINFO
806 free (codeset); 806 free (codeset);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines