diff options
| author | Stefan Monnier | 2005-07-21 05:36:04 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-07-21 05:36:04 +0000 |
| commit | a4ed715a3d997f23b4b060e1c0733def75fdaedc (patch) | |
| tree | 0f95e619c261ca11c0a90b2bc421c29ee8e08206 /src/mac.c | |
| parent | 69c3280d4db2833d27cbc46a4480b5047749d072 (diff) | |
| download | emacs-a4ed715a3d997f23b4b060e1c0733def75fdaedc.tar.gz emacs-a4ed715a3d997f23b4b060e1c0733def75fdaedc.zip | |
(Fmac_code_convert_string): Add comment about Fstring_as_unibyte.
Diffstat (limited to 'src/mac.c')
| -rw-r--r-- | src/mac.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Unix emulation routines for GNU Emacs on the Mac OS. | 1 | /* Unix emulation routines for GNU Emacs on the Mac OS. |
| 2 | Copyright (C) 2000, 2001 Free Software Foundation, Inc. | 2 | Copyright (C) 2000, 2001, 2005 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -4144,6 +4144,10 @@ nil. */) | |||
| 4144 | src_encoding = get_cfstring_encoding_from_lisp (source); | 4144 | src_encoding = get_cfstring_encoding_from_lisp (source); |
| 4145 | tgt_encoding = get_cfstring_encoding_from_lisp (target); | 4145 | tgt_encoding = get_cfstring_encoding_from_lisp (target); |
| 4146 | 4146 | ||
| 4147 | /* We really want string_to_unibyte, but since it doesn't exist yet, we | ||
| 4148 | use string_as_unibyte which works as well, except for the fact that | ||
| 4149 | it's too permissive (it doesn't check that the multibyte string only | ||
| 4150 | contain single-byte chars). */ | ||
| 4147 | string = Fstring_as_unibyte (string); | 4151 | string = Fstring_as_unibyte (string); |
| 4148 | if (src_encoding != kCFStringEncodingInvalidId | 4152 | if (src_encoding != kCFStringEncodingInvalidId |
| 4149 | && tgt_encoding != kCFStringEncodingInvalidId) | 4153 | && tgt_encoding != kCFStringEncodingInvalidId) |