diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index e5a8af93cf0..63198cd1018 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -5349,13 +5349,10 @@ init_buffer (void) | |||
| 5349 | len++; | 5349 | len++; |
| 5350 | } | 5350 | } |
| 5351 | 5351 | ||
| 5352 | /* At this moment, we still don't know how to decode the directory | ||
| 5353 | name. So, we keep the bytes in unibyte form so that file I/O | ||
| 5354 | routines correctly get the original bytes. */ | ||
| 5352 | bset_directory (current_buffer, make_unibyte_string (pwd, len)); | 5355 | bset_directory (current_buffer, make_unibyte_string (pwd, len)); |
| 5353 | if (! NILP (BVAR (&buffer_defaults, enable_multibyte_characters))) | ||
| 5354 | /* At this moment, we still don't know how to decode the | ||
| 5355 | directory name. So, we keep the bytes in multibyte form so | ||
| 5356 | that ENCODE_FILE correctly gets the original bytes. */ | ||
| 5357 | bset_directory | ||
| 5358 | (current_buffer, string_to_multibyte (BVAR (current_buffer, directory))); | ||
| 5359 | 5356 | ||
| 5360 | /* Add /: to the front of the name | 5357 | /* Add /: to the front of the name |
| 5361 | if it would otherwise be treated as magic. */ | 5358 | if it would otherwise be treated as magic. */ |