… | |
… | |
9 | * - extensive modifications |
9 | * - extensive modifications |
10 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
10 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
11 | * - extensive modifications |
11 | * - extensive modifications |
12 | * Copyright (c) 1999 D J Hawkey Jr <hawkeyd@visi.com> |
12 | * Copyright (c) 1999 D J Hawkey Jr <hawkeyd@visi.com> |
13 | * - QNX support |
13 | * - QNX support |
|
|
14 | * Copyright (c) 2003-2004 Marc Lehmann <pcg@goof.com> |
14 | * |
15 | * |
15 | * This program is free software; you can redistribute it and/or modify |
16 | * This program is free software; you can redistribute it and/or modify |
16 | * it under the terms of the GNU General Public License as published by |
17 | * it under the terms of the GNU General Public License as published by |
17 | * the Free Software Foundation; either version 2 of the License, or |
18 | * the Free Software Foundation; either version 2 of the License, or |
18 | * (at your option) any later version. |
19 | * (at your option) any later version. |
… | |
… | |
806 | rxvt_term::set_locale (const char *locale) |
807 | rxvt_term::set_locale (const char *locale) |
807 | { |
808 | { |
808 | #if HAVE_XSETLOCALE || HAVE_SETLOCALE |
809 | #if HAVE_XSETLOCALE || HAVE_SETLOCALE |
809 | free (this->locale); |
810 | free (this->locale); |
810 | this->locale = rxvt_strdup (setlocale (LC_CTYPE, "")); |
811 | this->locale = rxvt_strdup (setlocale (LC_CTYPE, "")); |
811 | rxvt_set_locale (this->locale); |
812 | SET_LOCALE (this->locale); |
812 | mbstate.reset (); |
813 | mbstate.reset (); |
813 | #endif |
814 | #endif |
814 | #if HAVE_NL_LANGINFO |
815 | #if HAVE_NL_LANGINFO |
815 | free (codeset); |
816 | free (codeset); |
816 | codeset = strdup (nl_langinfo (CODESET)); |
817 | codeset = strdup (nl_langinfo (CODESET)); |