… | |
… | |
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); |
|
|
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") |