diff options
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -2999,7 +2999,6 @@ The data read from the system are decoded using `locale-coding-system'. */) | |||
| 2999 | { | 2999 | { |
| 3000 | char *str = NULL; | 3000 | char *str = NULL; |
| 3001 | #ifdef HAVE_LANGINFO_CODESET | 3001 | #ifdef HAVE_LANGINFO_CODESET |
| 3002 | Lisp_Object val; | ||
| 3003 | if (EQ (item, Qcodeset)) | 3002 | if (EQ (item, Qcodeset)) |
| 3004 | { | 3003 | { |
| 3005 | str = nl_langinfo (CODESET); | 3004 | str = nl_langinfo (CODESET); |
| @@ -3015,7 +3014,7 @@ The data read from the system are decoded using `locale-coding-system'. */) | |||
| 3015 | for (i = 0; i < 7; i++) | 3014 | for (i = 0; i < 7; i++) |
| 3016 | { | 3015 | { |
| 3017 | str = nl_langinfo (days[i]); | 3016 | str = nl_langinfo (days[i]); |
| 3018 | val = build_unibyte_string (str); | 3017 | AUTO_STRING (val, str); |
| 3019 | /* Fixme: Is this coding system necessarily right, even if | 3018 | /* Fixme: Is this coding system necessarily right, even if |
| 3020 | it is consistent with CODESET? If not, what to do? */ | 3019 | it is consistent with CODESET? If not, what to do? */ |
| 3021 | ASET (v, i, code_convert_string_norecord (val, Vlocale_coding_system, | 3020 | ASET (v, i, code_convert_string_norecord (val, Vlocale_coding_system, |
| @@ -3035,7 +3034,7 @@ The data read from the system are decoded using `locale-coding-system'. */) | |||
| 3035 | for (i = 0; i < 12; i++) | 3034 | for (i = 0; i < 12; i++) |
| 3036 | { | 3035 | { |
| 3037 | str = nl_langinfo (months[i]); | 3036 | str = nl_langinfo (months[i]); |
| 3038 | val = build_unibyte_string (str); | 3037 | AUTO_STRING (val, str); |
| 3039 | ASET (v, i, code_convert_string_norecord (val, Vlocale_coding_system, | 3038 | ASET (v, i, code_convert_string_norecord (val, Vlocale_coding_system, |
| 3040 | 0)); | 3039 | 0)); |
| 3041 | } | 3040 | } |