[TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Use

Fstring_as_unibyte instead of string_make_unibyte.
This commit is contained in:
YAMAMOTO Mitsuharu 2005-07-16 07:16:55 +00:00
parent fceb44d286
commit 407289a44d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Use
Fstring_as_unibyte instead of string_make_unibyte.
2005-07-15 Richard M. Stallman <rms@gnu.org>
* xdisp.c (select_frame_for_redisplay): Use find_symbol_value.

View file

@ -4144,7 +4144,7 @@ nil. */)
src_encoding = get_cfstring_encoding_from_lisp (source);
tgt_encoding = get_cfstring_encoding_from_lisp (target);
string = string_make_unibyte (string);
string = Fstring_as_unibyte (string);
if (src_encoding != kCFStringEncodingInvalidId
&& tgt_encoding != kCFStringEncodingInvalidId)
str = CFStringCreateWithBytes (NULL, SDATA (string), SBYTES (string),