]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fmac_code_convert_string): Add comment about Fstring_as_unibyte.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Jul 2005 05:36:04 +0000 (05:36 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 21 Jul 2005 05:36:04 +0000 (05:36 +0000)
src/mac.c

index b4eb2d53dd5c4ccd8945a21a7032fc94591277dc..11dd93aa88dd103b3bf80de198689f44b3ecfd68 100644 (file)
--- a/src/mac.c
+++ b/src/mac.c
@@ -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 @@ nil.  */)
   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)