[#46309] [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "usa (Usaku NAKAMURA)" <usa@...>

13 messages 2012/10/29
[#46310] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — Tanaka Akira <akr@...> 2012/10/29

2012年10月29日 10:31 usa (Usaku NAKAMURA) <[email protected]>:

[#46366] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "U.Nakamura" <usa@...> 2012/11/02

こんにちは、なかむら(う)です。

[#46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — KOSAKI Motohiro <kosaki.motohiro@...> 2012/11/02

>> とくに指定しなければ、default external は locale から設定されるので、

[ruby-dev:46197] [Backport93 - Backport #6681] migw32 で utf-8 のスクリプトで「版」で終わるディレクトリの File.basename

From: "fahmisetiawand (Fahmi Setiawan)" <blogpahmi@...>
Date: 2012-10-03 09:20:45 UTC
List: ruby-dev #46197
Issue #6681 has been updated by fahmisetiawand (Fahmi Setiawan).


http://alkian.blogspot.com/2012/09/cara-menyembuhkan-asam-urat-dan-kolestrol-secara-alami.html
http://alkian.blogspot.com/2012/09/keretamini-keretamall-komediputar-ya-keretaminikucom.html
http://alkian.blogspot.com/2012/10/kata-kata-mutiara-motivasi-terbaru-2012.html
http://alkian.blogspot.com/2012/08/personil-coboy-junior.html
http://alkian.blogspot.com/2012/10/hasil-dan-klasemen-liga-champions.html
----------------------------------------
Backport #6681: migw32 で utf-8 のスクリプトで「版」で終わるディレクトリの File.basename 
https://bugs.ruby-lang.org/issues/6681#change-29966

Author: taki (Tatsuo Akiyama)
Status: Feedback
Priority: Normal
Assignee: 
Category: 
Target version: 


=begin

migw32 で utf-8 のスクリプトで「版」で終わるディレクトリの File.basename の結果がおかしいです。

スクリプト test1.rb
 # -*- coding: utf-8 -*-
 puts File.basename("1版/memo1.txt")

スクリプト test2.rb
 # -*- coding: Shift_JIS -*-
 puts File.basename("1版/memo1.txt")

どちらも「memo1.txt」が表示されることを期待しましたが、test1.rb だと「1版/memo1.txt」が表示されます。

 >ruby -v
 ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
 
 >ruby test1.rb
 1版/memo1.txt
 
 >ruby test2.rb
 memo1.txt

rubyinstaller.org 配布のバイナリを利用しています。

=end



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next