/[emacs]/emacs/src/buffer.c
ViewVC logotype

Diff of /emacs/src/buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.490 by eliz, Sat Sep 10 14:04:18 2005 UTC revision 1.491 by rfrancoise, Sat Sep 10 19:55:27 2005 UTC
# Line 5135  init_buffer () Line 5135  init_buffer ()
5135    
5136    pwd = get_current_dir_name ();    pwd = get_current_dir_name ();
5137    
5138    if(!pwd)    if (!pwd)
5139      fatal ("`get_current_dir_name' failed: %s\n", strerror (errno));      fatal ("`get_current_dir_name' failed: %s\n", strerror (errno));
5140    
5141  #ifndef VMS  #ifndef VMS
# Line 5144  init_buffer () Line 5144  init_buffer ()
5144    rc = strlen (pwd);    rc = strlen (pwd);
5145    if (!(IS_DIRECTORY_SEP (pwd[rc - 1])))    if (!(IS_DIRECTORY_SEP (pwd[rc - 1])))
5146      {      {
5147          /* Grow buffer to add directory separator and '\0'.  */
5148          pwd = (char *) xrealloc (pwd, rc + 2);
5149        pwd[rc] = DIRECTORY_SEP;        pwd[rc] = DIRECTORY_SEP;
5150        pwd[rc + 1] = '\0';        pwd[rc + 1] = '\0';
5151      }      }
# Line 5152  init_buffer () Line 5154  init_buffer ()
5154    current_buffer->directory = make_unibyte_string (pwd, strlen (pwd));    current_buffer->directory = make_unibyte_string (pwd, strlen (pwd));
5155    if (! NILP (buffer_defaults.enable_multibyte_characters))    if (! NILP (buffer_defaults.enable_multibyte_characters))
5156      /* At this momemnt, we still don't know how to decode the      /* At this momemnt, we still don't know how to decode the
5157         direcotry name.  So, we keep the bytes in multibyte form so         directory name.  So, we keep the bytes in multibyte form so
5158         that ENCODE_FILE correctly gets the original bytes.  */         that ENCODE_FILE correctly gets the original bytes.  */
5159      current_buffer->directory      current_buffer->directory
5160        = string_to_multibyte (current_buffer->directory);        = string_to_multibyte (current_buffer->directory);

Legend:
Removed from v.1.490  
changed lines
  Added in v.1.491

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26