diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-09 14:47:48 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-09 14:47:48 +0000 |
| commit | 78faea1e49d39956d4c59938048508a69fe477d5 (patch) | |
| tree | e22f62dae700ab86062b08ae8215a2cbbc97c0bb /ChangeLog | |
| parent | 1c7a1c06acd000fce5b39cde95bfa718d18afcaf (diff) | |
| download | ruby-78faea1e49d39956d4c59938048508a69fe477d5.tar.gz ruby-78faea1e49d39956d4c59938048508a69fe477d5.tar.xz ruby-78faea1e49d39956d4c59938048508a69fe477d5.zip | |
Set encoding and strip bom when modeenc string is "r:foo-bom" [ruby-dev:37236]
* include/ruby/io.h (FMODE_STRIP_BOM): new constant.
* io.c (io_encname_bom_p): judge whether the encoding name
is *-bom or not.
(parse_mode_enc): drop "-bom".
(rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed.
(rb_io_extract_modeenc): ditto.
(io_strip_bom): strip bom if exists.
(io_set_encoding_by_bom): set encoding if there is bom.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +Thu Jul 9 23:28:48 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * include/ruby/io.h (FMODE_STRIP_BOM): new constant. + + * io.c (io_encname_bom_p): judge whether the encoding name + is *-bom or not. + (parse_mode_enc): drop "-bom". + (rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed. + (rb_io_extract_modeenc): ditto. + (io_strip_bom): strip bom if exists. + (io_set_encoding_by_bom): set encoding if there is bom. + Set encoding and strip bom when modeenc string is "r:foo-bom" + [ruby-dev:37236] + Thu Jul 9 21:56:59 2009 NARUSE, Yui <naruse@ruby-lang.org> * marshal.c (r_object0): replace \u by u when the regexp is |
