diff --git a/ChangeLog b/ChangeLog index cda9b328b2..4cb7af7a71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 14 15:54:02 2012 NAKAMURA Usaku + + * file.c (rb_file_s_basename, rb_file_s_dirname): documentaion fix. + File.basename and File.dirname support File::ALT_SEPARATOR. + Thu Jun 14 11:10:10 2012 Yuki Yugui Sonoda * nacl/pepper_maini.c: Applies the new embedding API to pepper_ruby. diff --git a/file.c b/file.c index 6fc64a4739..bf584c843a 100644 --- a/file.c +++ b/file.c @@ -3648,8 +3648,9 @@ ruby_enc_find_basename(const char *name, long *baselen, long *alllen, rb_encodin * File.basename(file_name [, suffix] ) -> base_name * * Returns the last component of the filename given in file_name, - * which must be formed using forward slashes (``/'') - * regardless of the separator used on the local file system. If + * which can be formed using both File::SEPARATOR and + * File::ALT_SEPARETOR as the separator when + * File::ALT_SEPARATOR is not nil. If * suffix is given and present at the end of file_name, * it is removed. * @@ -3708,9 +3709,9 @@ rb_file_s_basename(int argc, VALUE *argv) * File.dirname(file_name ) -> dir_name * * Returns all components of the filename given in file_name - * except the last one. The filename must be formed using forward - * slashes (``/'') regardless of the separator used on the - * local file system. + * except the last one. The filename can be formed using both + * File::SEPARATOR and File::ALT_SEPARETOR as the + * separator when File::ALT_SEPARATOR is not nil. * * File.dirname("/home/gumby/work/ruby.rb") #=> "/home/gumby/work" */