[ruby-core:63186] [ruby-trunk - Bug #9946] [Closed] [Win32] redirection doesn't support non-codepage

From: nobu@...
Date: 2014-06-16 05:36:07 UTC
List: ruby-core #63186
Issue #9946 has been updated by Nobuyoshi Nakada.

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]

----------------------------------------
Bug #9946: [Win32] redirection doesn't support non-codepage
https://bugs.ruby-lang.org/issues/9946#change-47238

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: cruby-windows
* Category: platform/windows
* Target version: current: 2.2.0
* ruby -v: 2.2.0
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
~~~
> del t-*

> chcp
=E7=8F=BE=E5=9C=A8=E3=81=AE=E3=82=B3=E3=83=BC=E3=83=89 =E3=83=9A=E3=83=BC=
=E3=82=B8: 932

> .\ruby -v -e 'n=3D"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-=E7=B9=9D=E3=83=BB=E3=81=9B=E7=B9=9D=E6=9A=97=EF=BD=B6.txt
~~~

~~~
> del t-*

> .\ruby -v -e 'n=3D"t-\u{30c6 30b9 30c8}.txt"; p n; system("echo", Time.no=
w.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
=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=8C=E8=A6=8B=E3=81=A4=E3=81=8B=E3=
=82=8A=E3=81=BE=E3=81=9B=E3=82=93

> dir /b t-*
t-=E7=B9=9D=E3=83=BB=E3=81=9B=E7=B9=9D=E3=83=BBtxt
~~~




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next