diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-30 16:47:24 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-30 16:47:24 +0000 |
commit | 05d7d889ea4034ed2ee6fec8e9ddd6256b72065b (patch) | |
tree | e6be44b5a5fbda1ccbd8d95295146055fc00059a /ChangeLog | |
parent | 87703540b03e31d3d34a0645b2e03011471f4167 (diff) | |
download | ruby-05d7d889ea4034ed2ee6fec8e9ddd6256b72065b.tar.gz |
* string.c (rb_str_inspect): inspect as a dummy encoding string
when a UTF-16/32 (not BE/LE) string does not have a BOM.
Unicode and some RFCs say that a string labeld as UTF-16/32
doesn't have a BOM, it should be considered big endian.
But many Windows programs generates little endian UTF-16
strings without a BOM. So String#inspect treats a string
labeled UTF-16/32 withaout a BOM as a dummy encoding string.
patched by Martin Duerst. [ruby-core:33461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +Wed Dec 1 01:29:15 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * string.c (rb_str_inspect): inspect as a dummy encoding string + when a UTF-16/32 (not BE/LE) string does not have a BOM. + Unicode and some RFCs say that a string labeld as UTF-16/32 + doesn't have a BOM, it should be considered big endian. + But many Windows programs generates little endian UTF-16 + strings without a BOM. So String#inspect treats a string + labeled UTF-16/32 withaout a BOM as a dummy encoding string. + patched by Martin Duerst. [ruby-core:33461] + Tue Nov 30 17:04:10 2010 NARUSE, Yui <naruse@ruby-lang.org> * addr2line.c (parse_debug_line_cu): ignore DW_LNE_set_discriminator. |