diff src/mac.c @ 64553:58cbcf3e6ed1

(Fmac_code_convert_string): Add comment about Fstring_as_unibyte.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 21 Jul 2005 05:36:04 +0000
parents a673f66d6156
children b9746f88defa 187d6a1f84f7
line wrap: on
line diff
--- 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)