… | |
… | |
806 | rxvt_term::set_locale (const char *locale) |
806 | rxvt_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); |
811 | SET_LOCALE (this->locale); |
812 | mbstate.reset (); |
812 | mbstate.reset (); |
813 | #endif |
813 | #endif |
814 | #if HAVE_NL_LANGINFO |
814 | #if HAVE_NL_LANGINFO |
815 | free (codeset); |
815 | free (codeset); |
816 | codeset = strdup (nl_langinfo (CODESET)); |
816 | codeset = strdup (nl_langinfo (CODESET)); |