aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-21 22:53:11 +0000
committerRichard M. Stallman1998-01-21 22:53:11 +0000
commit418cd8ca018261799bafe504423cc109ebd58929 (patch)
tree1ae49f9d352a4d3f797f4d2eecaa9340748a7256 /src
parent31c8f8810190842a24b11be9961273ce981cca6f (diff)
downloademacs-418cd8ca018261799bafe504423cc109ebd58929.tar.gz
emacs-418cd8ca018261799bafe504423cc109ebd58929.zip
(Fsubstitute_in_file_name): Use unibyte_char_to_multibyte.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c
index a9c58095f4f..102573baf83 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1,5 +1,5 @@
1/* File IO for GNU Emacs. 1/* File IO for GNU Emacs.
2 Copyright (C) 1985,86,87,88,93,94,95,96,1997 Free Software Foundation, Inc. 2 Copyright (C) 1985,86,87,88,93,94,95,96,97,1998 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -1948,14 +1948,13 @@ duplicates what `expand-file-name' does.")
1948 convert what we substitute into multibyte. */ 1948 convert what we substitute into multibyte. */
1949 unsigned char workbuf[4], *str; 1949 unsigned char workbuf[4], *str;
1950 int len; 1950 int len;
1951 extern int nonascii_insert_offset;
1952 1951
1953 while (*o) 1952 while (*o)
1954 { 1953 {
1955 int c = *o++; 1954 int c = *o++;
1956 if (c >= 0200) 1955 c = unibyte_char_to_multibyte (c);
1956 if (! SINGLE_BYTE_CHAR_P (c))
1957 { 1957 {
1958 c += nonascii_insert_offset;
1959 len = CHAR_STRING (c, workbuf, str); 1958 len = CHAR_STRING (c, workbuf, str);
1960 bcopy (str, x, len); 1959 bcopy (str, x, len);
1961 x += len; 1960 x += len;