changeset 20707:48745ae8daa0

(Fsubstitute_in_file_name): Use unibyte_char_to_multibyte.
author Richard M. Stallman <rms@gnu.org>
date Wed, 21 Jan 1998 22:53:11 +0000
parents d43ba5d91281
children ed9ed828415e
files src/fileio.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Wed Jan 21 22:22:17 1998 +0000
+++ b/src/fileio.c	Wed Jan 21 22:53:11 1998 +0000
@@ -1,5 +1,5 @@
 /* File IO for GNU Emacs.
-   Copyright (C) 1985,86,87,88,93,94,95,96,1997 Free Software Foundation, Inc.
+   Copyright (C) 1985,86,87,88,93,94,95,96,97,1998 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -1948,14 +1948,13 @@
 	       convert what we substitute into multibyte.  */
 	    unsigned char workbuf[4], *str;
 	    int len;
-	    extern int nonascii_insert_offset;
 
 	    while (*o)
 	      {
 		int c = *o++;
-		if (c >= 0200)
+		c = unibyte_char_to_multibyte (c);
+		if (! SINGLE_BYTE_CHAR_P (c))
 		  {
-		    c += nonascii_insert_offset;
 		    len = CHAR_STRING (c, workbuf, str);
 		    bcopy (str, x, len);
 		    x += len;