Project

General

Profile

Actions

Bug #1771

closed

system()/popen()/popen3() & windows & unicode is not working

Added by jkubos (Jarek Kuboš) over 15 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-08) [i386-mswin32_90]
Backport:
[ruby-core:24309]

Description

=begin
Hi,

I am very happy from progress in Unicode support on Windows.

There is issue describing pending functionality regarding files (http://redmine.ruby-lang.org/issues/show/1685). But I found another important area - opening processes.

This code shows not working (if that file exists, it is not opened by notepad) functions:

encoding: UTF-8

fname = "của_zufällige_žluťoučký_გამეორებ_разлога_和新加坡以及东.txt"

system("notepad.exe #{fname}")
IO.popen("notepad.exe #{fname}")
Open3.popen3("notepad.exe #{fname}")

I tried to open notepad from command line with same parameters and it works.

Best regards
Jarek

PS: I am sorry if I choose wrong fix version...
=end


Related issues 3 (0 open3 closed)

Related to Ruby master - Feature #2255: unicode parameters cannot be passed to rubyClosedwindowsActions
Related to Ruby master - Bug #1685: Some windows unicode path issues remainClosedusa (Usaku NAKAMURA)06/24/2009Actions
Has duplicate Ruby master - Bug #3323: Spawning process on unicode path is not supported on windowsClosedusa (Usaku NAKAMURA)05/20/2010Actions
Actions #1

Updated by yugui (Yuki Sonoda) over 15 years ago

  • Assignee set to usa (Usaku NAKAMURA)

=begin

=end

Actions #2

Updated by yugui (Yuki Sonoda) over 15 years ago

  • Target version changed from 1.9.2 to 2.0.0

=begin

=end

Actions #3

Updated by usa (Usaku NAKAMURA) over 15 years ago

  • Status changed from Open to Assigned

=begin

=end

Actions #4

Updated by usa (Usaku NAKAMURA) over 15 years ago

  • Priority changed from Normal to 5

=begin

=end

Actions #5

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Category changed from core to M17N
  • Priority changed from 5 to Normal

=begin

=end

Updated by mame (Yusuke Endoh) almost 12 years ago

  • Description updated (diff)

Usa-san, what's the status?

--
Yusuke Endoh

Updated by mame (Yusuke Endoh) over 11 years ago

  • Target version changed from 2.0.0 to 2.6

Usa-san, what's the status?

--
Yusuke Endoh

Actions #8

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

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

This issue was solved with changeset r41709.
Jarek, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


win32: UTF-8 spawn

  • io.c (spawnv, spawn): use UTF-8 spawn family. [Bug #1771]
  • process.c (proc_exec_sh, proc_spawn_cmd, proc_spawn_sh): ditto.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0