… | |
… | |
796 | void |
796 | void |
797 | rxvt_term::set_locale (const char *locale) |
797 | rxvt_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); |