comparison src/buffer.c @ 58618:567ca4ca8574

(init_buffer): Set current_buffer->directory to a multibyte string made by string_to_multibyte.
author Kenichi Handa <handa@m17n.org>
date Mon, 29 Nov 2004 07:16:25 +0000
parents 8f225aca7c72
children 3f2406abbe2a 549734260e34 f2ebccfa87d4
comparison
equal deleted inserted replaced
58617:48bd22b33f65 58618:567ca4ca8574
5160 buf[rc] = DIRECTORY_SEP; 5160 buf[rc] = DIRECTORY_SEP;
5161 buf[rc + 1] = '\0'; 5161 buf[rc + 1] = '\0';
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. */
5169 temp = Ffind_file_name_handler (current_buffer->directory, Qt); 5175 temp = Ffind_file_name_handler (current_buffer->directory, Qt);
5170 if (! NILP (temp) 5176 if (! NILP (temp)