# HG changeset patch # User Kenichi Handa # Date 1101712585 0 # Node ID 567ca4ca857409a4d45757fdbea51ac51e1caa45 # Parent 48bd22b33f653dc7ba84a5be2d6946c8fd3efacf (init_buffer): Set current_buffer->directory to a multibyte string made by string_to_multibyte. diff -r 48bd22b33f65 -r 567ca4ca8574 src/buffer.c --- a/src/buffer.c Mon Nov 29 07:16:09 2004 +0000 +++ b/src/buffer.c Mon Nov 29 07:16:25 2004 +0000 @@ -5162,7 +5162,13 @@ } #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. */