# HG changeset patch # User Stefan Monnier # Date 1121924164 0 # Node ID 58cbcf3e6ed1180a31f10bd6bef98557f8b76780 # Parent 6d2fdf6cf1f26b98b34f76ee65258047713b425b (Fmac_code_convert_string): Add comment about Fstring_as_unibyte. diff -r 6d2fdf6cf1f2 -r 58cbcf3e6ed1 src/mac.c --- a/src/mac.c Wed Jul 20 23:09:56 2005 +0000 +++ b/src/mac.c Thu Jul 21 05:36:04 2005 +0000 @@ -1,5 +1,5 @@ /* Unix emulation routines for GNU Emacs on the Mac OS. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2005 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -4144,6 +4144,10 @@ src_encoding = get_cfstring_encoding_from_lisp (source); tgt_encoding = get_cfstring_encoding_from_lisp (target); + /* We really want string_to_unibyte, but since it doesn't exist yet, we + use string_as_unibyte which works as well, except for the fact that + it's too permissive (it doesn't check that the multibyte string only + contain single-byte chars). */ string = Fstring_as_unibyte (string); if (src_encoding != kCFStringEncodingInvalidId && tgt_encoding != kCFStringEncodingInvalidId)