From a4ed715a3d997f23b4b060e1c0733def75fdaedc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 21 Jul 2005 05:36:04 +0000 Subject: [PATCH] (Fmac_code_convert_string): Add comment about Fstring_as_unibyte. --- src/mac.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mac.c b/src/mac.c index b4eb2d53dd5..11dd93aa88d 100644 --- 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) -- 2.39.2