https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2012-01-25T11:32:11Z
Ruby Issue Tracking System
Ruby master - Bug #5919: File singleton methods (expand_path, realpath, dirname, basename, extname) should respect encodings
https://redmine.ruby-lang.org/issues/5919?journal_id=23420
2012-01-25T11:32:11Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r34372.<br>
Nobuyoshi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>file.c (rb_enc_path_next, rb_enc_path_skip_prefix)<br>
(rb_enc_path_last_separator, rb_enc_path_end)<br>
(ruby_enc_find_basename, ruby_enc_find_extname): encoding-aware<br>
path handling functions.</li>
<li>file.c (rb_home_dir, file_expand_path, rb_realpath_internal)<br>
(rb_file_s_basename, rb_file_dirname, rb_file_s_extname)<br>
(rb_file_join): should respect the encodings of arguments than<br>
file system encoding. <a href="/issues/5919">[ruby-dev:45145]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: File singleton methods (expand_path, realpath, dirname, basename, extname) should respect encodings (Closed)" href="https://redmine.ruby-lang.org/issues/5919">#5919</a>]</li>
<li>dir.c (check_dirname, ruby_glob0): ditto.</li>
<li>ext/pathname/pathname.c (path_sub_ext): ditto.</li>
</ul>