aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-11-29 07:16:25 +0000
committerKenichi Handa2004-11-29 07:16:25 +0000
commitdcd74c5f2c90338068e114ebedf0353f976a186c (patch)
tree25214c0a03fcb3d7ac60472dcf98dd8fe9a25f9f /src
parenta520393db0c1209e597b0aa009ce691b512b83f6 (diff)
downloademacs-dcd74c5f2c90338068e114ebedf0353f976a186c.tar.gz
emacs-dcd74c5f2c90338068e114ebedf0353f976a186c.zip
(init_buffer): Set current_buffer->directory to a
multibyte string made by string_to_multibyte.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b3b04078036..2d931272467 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5162,7 +5162,13 @@ init_buffer ()
5162 } 5162 }
5163#endif /* not VMS */ 5163#endif /* not VMS */
5164 5164
5165 current_buffer->directory = build_string (buf); 5165 current_buffer->directory = make_unibyte_string (buf, strlen (buf));
5166 if (! NILP (buffer_defaults.enable_multibyte_characters))
5167 /* At this momemnt, we still don't know how to decode the
5168 direcotry name. So, we keep the bytes in multibyte form so
5169 that ENCODE_FILE correctly gets the original bytes. */
5170 current_buffer->directory
5171 = string_to_multibyte (current_buffer->directory);
5166 5172
5167 /* Add /: to the front of the name 5173 /* Add /: to the front of the name
5168 if it would otherwise be treated as magic. */ 5174 if it would otherwise be treated as magic. */