Project

General

Profile

Bug #9946

[Win32] redirection doesn't support non-codepage

Added by nobu (Nobuyoshi Nakada) almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
cruby-windows
Target version:
ruby -v:
2.2.0
[ruby-core:63185]

Description

> del t-*

> chcp
現在のコード ページ: 932

> .\ruby -v -e 'n="t-\u{30c6 30b9 30c8 f6}.txt"; p n; system("echo", Time.now.to_s, out:n)'
ruby 2.2.0dev (2014-06-15 trunk 46438) [x64-mswin64_120]
"t-\u30C6\u30B9\u30C8\u00F6.txt"

> dir /b t-*.txt
t-繝・せ繝暗カ.txt
> del t-*

> .\ruby -v -e 'n="t-\u{30c6 30b9 30c8}.txt"; p n; system("echo", Time.now.to_s, out:n)'
ruby 2.2.0dev (2014-06-15 trunk 46438) [x64-mswin64_120]
"t-\u30C6\u30B9\u30C8.txt"

> dir /b t-*.txt
ファイルが見つかりません

> dir /b t-*
t-繝・せ繝・txt

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r46441.


process.c: use UTF-8

  • process.c (open): use UTF-8 version function to support non-ascii path properly. [ruby-core:63185] [Bug #9946]

Updated by nagachika (Tomoyuki Chikanaga) almost 6 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE

Backported into ruby_2_1 branch at r47324.

Updated by usa (Usaku NAKAMURA) over 5 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE

backported into ruby_2_0_0 at r47404.

Also available in: Atom PDF