diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -949,6 +949,8 @@ each unibyte character to a multibyte character.") | |||
| 949 | (string) | 949 | (string) |
| 950 | Lisp_Object string; | 950 | Lisp_Object string; |
| 951 | { | 951 | { |
| 952 | CHECK_STRING (string, 0); | ||
| 953 | |||
| 952 | return string_make_multibyte (string); | 954 | return string_make_multibyte (string); |
| 953 | } | 955 | } |
| 954 | 956 | ||
| @@ -960,6 +962,8 @@ by using just the low 8 bits.") | |||
| 960 | (string) | 962 | (string) |
| 961 | Lisp_Object string; | 963 | Lisp_Object string; |
| 962 | { | 964 | { |
| 965 | CHECK_STRING (string, 0); | ||
| 966 | |||
| 963 | return string_make_unibyte (string); | 967 | return string_make_unibyte (string); |
| 964 | } | 968 | } |
| 965 | 969 | ||
| @@ -970,6 +974,8 @@ If STRING is unibyte, the result is STRING itself.") | |||
| 970 | (string) | 974 | (string) |
| 971 | Lisp_Object string; | 975 | Lisp_Object string; |
| 972 | { | 976 | { |
| 977 | CHECK_STRING (string, 0); | ||
| 978 | |||
| 973 | if (STRING_MULTIBYTE (string)) | 979 | if (STRING_MULTIBYTE (string)) |
| 974 | { | 980 | { |
| 975 | string = Fcopy_sequence (string); | 981 | string = Fcopy_sequence (string); |
| @@ -986,6 +992,8 @@ If STRING is multibyte, the result is STRING itself.") | |||
| 986 | (string) | 992 | (string) |
| 987 | Lisp_Object string; | 993 | Lisp_Object string; |
| 988 | { | 994 | { |
| 995 | CHECK_STRING (string, 0); | ||
| 996 | |||
| 989 | if (! STRING_MULTIBYTE (string)) | 997 | if (! STRING_MULTIBYTE (string)) |
| 990 | { | 998 | { |
| 991 | int nbytes = STRING_BYTES (XSTRING (string)); | 999 | int nbytes = STRING_BYTES (XSTRING (string)); |