diff options
author | Kenichi Handa <[email protected]> | 2004-11-29 07:16:25 +0000 |
---|---|---|
committer | Kenichi Handa <[email protected]> | 2004-11-29 07:16:25 +0000 |
commit | dcd74c5f2c90338068e114ebedf0353f976a186c (patch) | |
tree | 25214c0a03fcb3d7ac60472dcf98dd8fe9a25f9f /src/buffer.c | |
parent | a520393db0c1209e597b0aa009ce691b512b83f6 (diff) |
(init_buffer): Set current_buffer->directory to a
multibyte string made by string_to_multibyte.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index b3b0407803..2d93127246 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5162,7 +5162,13 @@ init_buffer () } #endif /* not VMS */ - current_buffer->directory = build_string (buf); + current_buffer->directory = make_unibyte_string (buf, strlen (buf)); + if (! NILP (buffer_defaults.enable_multibyte_characters)) + /* At this momemnt, we still don't know how to decode the + direcotry name. So, we keep the bytes in multibyte form so + that ENCODE_FILE correctly gets the original bytes. */ + current_buffer->directory + = string_to_multibyte (current_buffer->directory); /* Add /: to the front of the name if it would otherwise be treated as magic. */ |