Commit 418cd8ca authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fsubstitute_in_file_name): Use unibyte_char_to_multibyte.

parent 31c8f881
/* 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 @@ duplicates what `expand-file-name' does.")
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);
c += nonascii_insert_offset;
len = CHAR_STRING (c, workbuf, str);
bcopy (str, x, len);
x += len;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment