[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>
I'll try to be brief so we can discuss all this. tl;dr: RubySpec is
19 messages
2015/01/05
[#67353] Re: Future of test suites for Ruby
— Tanaka Akira <akr@...>
2015/01/05
2015-01-06 7:18 GMT+09:00 Charles Oliver Nutter <headius@headius.com>:
[#67444] [ruby-trunk - Feature #10718] [Open] IO#close should not raise IOError on closed IO objects. — akr@...
Issue #10718 has been reported by Akira Tanaka.
3 messages
2015/01/09
[#67689] Keyword Arguments — Anthony Crumley <anthony.crumley@...>
Please forgive my ignorance as I am new to MRI development and am still
5 messages
2015/01/20
[#67733] [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5 — normalperson@...
Issue #10761 has been updated by Eric Wong.
4 messages
2015/01/21
[#67736] Re: [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5
— Eric Wong <normalperson@...>
2015/01/22
normalperson@yhbt.net wrote:
[#67772] Preventing Redundant Email Messages — Jeremy Evans <code@...>
For a long time, I've wondered why I sometimes receive redundant email
5 messages
2015/01/23
[ruby-core:67382] [ruby-trunk - Bug #10704] [Assigned] Normalization of path names on OSX
From:
naruse@...
Date:
2015-01-07 08:26:20 UTC
List:
ruby-core #67382
Issue #10704 has been updated by Yui NARUSE.
Status changed from Closed to Assigned
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/38356 によると、
> 正確にはVFSドライバのレイヤーですね。
> そこで、上位レイヤーからのパスはファイルシステムに適した形に、
> ファイルシステムからのパスはdecomposed UTF-8に、基本的には変換します。
>
> 「ファイルシステムに適した形」というのは、必ずしもdecomposed Unicodeには
> ならないという意味です。
> 例えば、HFS+ではdecomposed UTF-16になります。
> しかし、smb経由でWindowsのファイルサーバーにアクセスする場合、
> Mac OS Xはファイル名を合成済み形式にしてアクセスを行います。
> そして、分解済みのファイル名を持つファイルにはアクセスすることができません。
>
> 例外がUFSとNFSで、この2つでは上記の処理が行われません。
とのことなので、仰る解釈は誤りです。
思うにFSごとに判別が必要でしょう。
----------------------------------------
Bug #10704: Normalization of path names on OSX
https://bugs.ruby-lang.org/issues/10704#change-50825
* Author: Nobuyoshi Nakada
* Status: Assigned
* Priority: Normal
* Assignee: cruby-mac
* Category: platform/darwin
* Target version:
* ruby -v: r49165
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
OSXでのファイル名のUnicode normalizationは、今までHFS上の場合だけ行ってきましたが、HFS以外でも必要そうです。
## 実験
(1) Windows上でNFCとNFDのファイルを作る。
> cmd /c ver
Microsoft Windows [Version 6.1.7601]
> ruby -e '%W[\u{304c} \u{304b 3099}].each{|n| File.write(n, "\n")}'
(2) そのディレクトリをOSXからsmbでマウント。
(3) `Dir.entries`で確認。
$ ruby -v -e 'puts Dir.entries(ARGV[0]).grep(/^[^.]/).map(&:dump)' $g
ruby 2.3.0dev (2015-01-06 trunk 49163) [universal.x86_64-darwin14]
"\u{304b}\u{3099}"
"\u{304b}\u{3099}"
どちらもNFDになってしまいます。
trunkでは r49166 で修正しました。
--
https://bugs.ruby-lang.org/