[#23295] [proposal] new function for mathing path name — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
6 messages
2004/04/01
[#23296] Re: [proposal] new function for mathing path name
— matz@... (Yukihiro Matsumoto)
2004/04/01
まつもと ゆきひろです
[#23309] 100000000000000000000000 == 100000000000000000000000.0 — Tanaka Akira <akr@...17n.org>
ふと (またしても) 気がついたのですが、次のように
5 messages
2004/04/02
[#23310] Re: 100000000000000000000000 == 100000000000000000000000.0
— matz@... (Yukihiro Matsumoto)
2004/04/02
まつもと ゆきひろです
[#23311] Re: 100000000000000000000000 == 100000000000000000000000.0
— Tanaka Akira <akr@...17n.org>
2004/04/02
In article <1080884868.201381.30812.nullmailer@picachu.netlab.jp>,
[#23324] test_pack_U/test_huge_difference error — MIYAMUKO Katsuyuki <k-miyamuko@...>
みやむこです。
9 messages
2004/04/05
[#23353] Re: test_pack_U/test_huge_difference error
— "NAKAMURA, Hiroshi" <nakahiro@...>
2004/04/08
なひです。
[#23332] to_str再考 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
15 messages
2004/04/05
[#23392] Re: to_str再考
— nobu.nakada@...
2004/04/16
なかだです。
[#23396] Re: to_str再考
— Tanaka Akira <akr@...17n.org>
2004/04/16
In article <200404160100.i3G10FjJ003540@sharui.nakada.niregi.kanuma.tochigi.jp>,
[#23346] Solaris Errno::E000 — とみたまさひろ <tommy@...>
とみたです。
4 messages
2004/04/07
[#23380] [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
17 messages
2004/04/15
[#23400] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/16
山本です。落ちる場所がわかりました。
[#23402] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/16
山本です。
[#23403] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— nobu.nakada@...
2004/04/16
なかだです。
[#23405] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/16
山本です。
[#23407] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/16
山本です。
[#23412] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/20
山本です。原因を絞り込めました。
[#23413] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/20
山本です。
[#23414] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "U.Nakamura" <usa@...>
2004/04/20
こんにちは、なかむら(う)です。
[#23415] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/20
山本です。
[#23416] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/20
山本です。
[#23417] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2004/04/20
山本です。SEGVの原因がわかりました。
[#23418] Re: [SEGV] make test-all (bccwin32 ruby1.9.0)
— nobu.nakada@...
2004/04/20
なかだです。
[#23381] gdbm read only access — Tanaka Akira <akr@...17n.org>
ふと、GDBM を read only で access したくなったのですが、GDBM.open には
4 messages
2004/04/15
[#23385] Process::Status as boolean — nobu.nakada@...
なかだです。
7 messages
2004/04/15
[#23394] drb test failure due to multiple value class — nobu.nakada@...
なかだです。
3 messages
2004/04/16
[#23408] Ruby/Bsearch — MoonWolf <moonwolf@...>
MoonWolfです。
6 messages
2004/04/19
[#23432] Resolv.getaddress(IPv6) causes error — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
7 messages
2004/04/23
[#23433] Re: Resolv.getaddress(IPv6) causes error
— Tanaka Akira <akr@...17n.org>
2004/04/23
In article <20040423115903.F2C7.USA@garbagecollect.jp>,
[#23434] Re: Resolv.getaddress(IPv6) causes error
— "U.Nakamura" <usa@...>
2004/04/23
こんにちは、なかむら(う)です。
[#23443] [Oniguruma] Version 2.2.8 — <kkosako@...>
ftp.ruby-lang.orgとhttp://www.geocities.jp/kosako1/に、
6 messages
2004/04/27
[ruby-dev:23377] IO#gets under VMS
From:
"NAKAMURA, Hiroshi" <nakahiro@...>
Date:
2004-04-13 06:38:46 UTC
List:
ruby-dev #23377
なひです。
OpenVMSでのCSVモジュールの利用について、直接メイルをもらいました。
RubyのVMSへのport状況についてよく知らないので、どなたか
相談にのってください。
もらったメイルによると、VMSのvariable-lengthフォーマットの
ファイルをCSV.parseで解析しようとすると、"foo,bar\n"という
stream-lf(もしくはstream-cr)的なフォーマットを期待している
CSV.parseが誤動作する、というもので、
RubyのVMS portでは、IO#getsしてくれればちゃんと1行、
stream-lfっぽく返すので問題がない。IO#getsにならん?
ということのようです。
variable-lengthフォーマットだとそれで問題ないのですが、そうでない
platformでは、IO#getsすると、cell中にlfが入っていたときに
だまされてしまうため、使いたくありません。
その後のメイルのやりとりで、このユーザさんは、
それならVMS用に、IO#getsを使うモードを用意してほしい、
できれば自動判別してほしいけど、駄目ならCSV.parseを
使うアプリ側からモードを指定してもよい
と言っています。
というわけで、以下にまとめます。
* VMS環境で、ファイルフォーマットを知る方法はあるか。
* もしかして、「VMS環境だろうと、Rubyでは、portabilityのため、
IO#readもIO#gets同様、stream-lfっぽく読めるべきだ(自前で
変換すべきだ)」と主張する人は居ますか?
portabilityを最大限に重視すると、IO#readは使わないほうがよい?
* あるいは別に、好ましい解決方法を知っている人がいたら教えてください。
以下は元メイルの引用です。許可は取ってあります。
/ / /
Subject: csv.rb portability issue
Greetings,
Thanks for writing csv.rb. It looks like what we need for a project we
are working on. However, we are having trouble using your code on the
OpenVMS platform because of a portability issue.
It appears you have assumed input/output files are always represented on
disk as standard line terminator delimited files (i.e. <lf> or <cr><lf>
files). Although this assumption does hold on most platforms, it is not
universal.
Since csv.rb processes files in a non-line oriented fashion (i.e.
blocked and decoded), the code doesn't work properly on the
native text file structure used in OpenVMS, which has a character count
in front of each line, and has no line delimiters:
<count1><line1><count2><line2>...
The OpenVMS implementation of ruby does support reading and writing
files in this format if you use standard library calls. The file will
be seen by the caller as a conventional file of lines with line
terminators. But when the raw data is read from the disk a block at a
time, it is impossible for OpenVMS ruby to do the necessary translation
so your library will see line terminators.
If the csv.rb routine were to read the data thru the standard "gets"
input line methods, the problem would cease to exist. Would you please
modify your code to make it possible to bypass the raw disk read, and
use standard IO calls for text files instead, or eliminate the raw read
altogether?