diff options
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 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. */ |