[#38241] MinGW における拡張ライブラリ作成と Ruby 1.8/1.9 共存について — Hajime Hoshi <hajimehoshi@...>
星と申します。
8 messages
2009/04/01
[#38252] Hashのデフォルト値のブロックで無限ループするとcore — "KISHIMOTO, Makoto" <[email protected]>
きしもとです
7 messages
2009/04/02
[#38284] Re: Hashのデフォルト値のブロックで無限ループするとcore
— Yukihiro Matsumoto <matz@...>
2009/04/06
まつもと ゆきひろです
[#38255] --program-suffix 指定時の ri の探索先あるいは rdoc のインストール先 — "KISHIMOTO, Makoto" <[email protected]>
きしもとです
7 messages
2009/04/02
[#38278] [BUG:1.9] io does not convert str when ext == intern — sheepman <sh@...>
こんばんは sheepman です。
6 messages
2009/04/05
[#38303] [BUG:1.9] Dir.glob should not convert entries on UNIX — sheepman <sh@...>
こんばんは sheepman です。
5 messages
2009/04/11
[#38309] [Feature:1.9] transcode for UTF8-MAC — sheepman <sh@...>
こんばんは sheepman です。
8 messages
2009/04/16
[#38323] [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合 — oshida@...
押田です。
22 messages
2009/04/24
[#38331] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/04/26
永井@知能.九工大です.
[#38339] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/04/27
押田です。
[#38340] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/04/27
永井@知能.九工大です.
[#38697] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/06/21
永井@知能.九工大です.
[#38711] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/06/24
押田です。
[#38723] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/07/01
永井@知能.九工大です.
[#38743] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/07/07
押田です。
[#38747] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/07/08
永井@知能.九工大です.
[#38748] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/07/08
押田です。
[#38749] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/07/08
永井@知能.九工大です.
[#38750] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/07/08
押田です。
[#38752] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/07/08
永井@知能.九工大です.
[#38754] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— oshida@...
2009/07/09
押田です。
[#38755] Re: [1.8.7][1.9.1][tk] 自前実装の拡張 widget を使いたい場合
— Hidetoshi NAGAI <nagai@...>
2009/07/09
永井@知能.九工大です.
[#38326] Time with arbitrary offset — Tanaka Akira <akr@...>
Time で、オブジェクト毎に任意の時差を指定できるようにするの
9 messages
2009/04/25
[#38338] Re: Time with arbitrary offset
— Yukihiro Matsumoto <matz@...>
2009/04/26
まつもと ゆきひろです
[#38341] Re: Time with arbitrary offset
— Tanaka Akira <akr@...>
2009/04/27
In article <[email protected]>,
[#38348] Re: Time with arbitrary offset
— Yukihiro Matsumoto <matz@...>
2009/04/27
まつもと ゆきひろです
[#38336] [Bug #1410] irb shows some messages on boot — Nobuhiro IMAI <redmine@...>
Bug #1410: irb shows some messages on boot
6 messages
2009/04/26
[ruby-dev:38240] Re: [BUG: 1.9] encoding warning
From:
Yusuke ENDOH <mame@...>
Date:
2009-04-01 12:27:51 UTC
List:
ruby-dev #38240
遠藤です。 2009/2/5 SASADA Koichi <[email protected]>: > ささだです. > > 以下のように,-v や -w 付きの ruby で erb を require すると,"coding: > ..." の場所が違うよ,という警告が出ます. > > $ cat test.rb > require 'erb' > > $ /tmp/trunk/bin/ruby -v test.rb > ruby 1.9.2dev (2009-02-05 trunk 22076) [x86_64-linux] > test.rb:1: warning: encoding 'UTF-8' is ignored, valid only in the first > line except for shebang line. > test.rb:1: warning: encoding 'Big5' is ignored, valid only in the first > line except for shebang line. > > これは,2つの問題があるかと思います. > > (1) erb の説明のコメントに反応して警告をしている > > ちょっと見てみると,68 行目にコメント中のサンプルコードとして > > # # -*- coding: UTF-8 -*- > > という行が,72 行目に > > # <%#-*- coding: Big5 -*-%> > > という行があります.これに対しての警告じゃないかと思います.ちょっとやり > すぎ? > > > (2) require している行の警告として出ている > > test.rb:1: warning: encoding 'UTF-8' is ignored, valid only in the first > line except for shebang line. > > と,require している行が警告行として表示されています.多分,erb.rb:68 と > かと表示してくれたほうがいいと思います. > > > > (1) はどうかな,と思います.(2) は,直したほうがいいんではないかと思い > ます. > > # (1) の ad-hoc な解決策として,=begin/=end で囲ってしまうってのが > # あるようです. > > -- > // SASADA Koichi at atdot dot net この件、どうなるものでしょう。hoe で実際に発症しています。 $ sow19 /home/mame/work/ruby19/local/lib/ruby/gems/1.9.1/gems/hoe-1.12.1/bin/sow:10: warning: encoding 'UTF-8' is ignored, valid only in the first line except for shebang line. /home/mame/work/ruby19/local/lib/ruby/gems/1.9.1/gems/hoe-1.12.1/bin/sow:10: warning: encoding 'Big5' is ignored, valid only in the first line except for shebang line. usage: sow19 [-d|-t] project -t = add project to subdir under 'trunk' -d = add project to subdir under 'dev' 実害はないものの、なかなかめざわりです。 とりあえずパッチです。 Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 23115) +++ lib/erb.rb (working copy) @@ -65,6 +65,7 @@ # a magic comment, however, it returns a string in the encoding specified # by the magic comment. # +=begin # # -*- coding: UTF-8 -*- # require 'erb' # @@ -73,6 +74,7 @@ # \_\_ENCODING\_\_ is <%= \_\_ENCODING\_\_ %>. # EOF # puts template.result +=end # # <em>Prints:</em> \_\_ENCODING\_\_ is Big5. # Index: parse.y =================================================================== --- parse.y (revision 23115) +++ parse.y (working copy) @@ -6089,7 +6089,7 @@ magic_comment_encoding(struct parser_params *parser, const char *name, const char *val) { if (!comment_at_top(parser)) { - rb_warning("encoding '%s' is ignored, valid only in the first line except for shebang line.", + rb_warningS("encoding '%s' is ignored, valid only in the first line except for shebang line.", val); return; } -- Yusuke ENDOH <[email protected]>