ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:94326] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed
       [not found] <redmine.issue-16099.20190813142229@ruby-lang.org>
@ 2019-08-13 14:22 ` nobu
  2019-08-18  6:53 ` [ruby-core:94412] " nagachika00
  2019-08-26 16:44 ` [ruby-core:94581] " usa
  2 siblings, 0 replies; 3+ messages in thread
From: nobu @ 2019-08-13 14:22 UTC (permalink / raw)
  To: ruby-core

Issue #16099 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #16099: UTF-16LE BOM followed by '\0' is missed
https://bugs.ruby-lang.org/issues/16099

* Author: nobu (Nobuyoshi Nakada)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: 
* Backport: 2.5: REQUIRED, 2.6: REQUIRED
----------------------------------------
```
$ ruby -e 'File.binwrite("u.txt", "\xff\xfe\x00\x01")'
$ file u.txt 
u.txt: Little-endian UTF-16 Unicode text, with no line terminators
$ ruby -e 'p File.open("u.txt", "rb:bom|utf-8", &:external_encoding)'
#<Encoding:UTF-8>
```

The last result must be UTF-16LE.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:94412] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed
       [not found] <redmine.issue-16099.20190813142229@ruby-lang.org>
  2019-08-13 14:22 ` [ruby-core:94326] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed nobu
@ 2019-08-18  6:53 ` nagachika00
  2019-08-26 16:44 ` [ruby-core:94581] " usa
  2 siblings, 0 replies; 3+ messages in thread
From: nagachika00 @ 2019-08-18  6:53 UTC (permalink / raw)
  To: ruby-core

Issue #16099 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.5: REQUIRED, 2.6: REQUIRED to 2.5: REQUIRED, 2.6: DONE

ruby_2_6 r67746 merged revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651.

----------------------------------------
Bug #16099: UTF-16LE BOM followed by '\0' is missed
https://bugs.ruby-lang.org/issues/16099#change-80834

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: 
* Backport: 2.5: REQUIRED, 2.6: DONE
----------------------------------------
```
$ ruby -e 'File.binwrite("u.txt", "\xff\xfe\x00\x01")'
$ file u.txt 
u.txt: Little-endian UTF-16 Unicode text, with no line terminators
$ ruby -e 'p File.open("u.txt", "rb:bom|utf-8", &:external_encoding)'
#<Encoding:UTF-8>
```

The last result must be UTF-16LE.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:94581] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed
       [not found] <redmine.issue-16099.20190813142229@ruby-lang.org>
  2019-08-13 14:22 ` [ruby-core:94326] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed nobu
  2019-08-18  6:53 ` [ruby-core:94412] " nagachika00
@ 2019-08-26 16:44 ` usa
  2 siblings, 0 replies; 3+ messages in thread
From: usa @ 2019-08-26 16:44 UTC (permalink / raw)
  To: ruby-core

Issue #16099 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.5: REQUIRED, 2.6: DONE to 2.5: DONE, 2.6: DONE

ruby_2_5 r67772 merged revision(s) 5b1bf8dd2d08ae7371ecf025967376bb794ed651.

----------------------------------------
Bug #16099: UTF-16LE BOM followed by '\0' is missed
https://bugs.ruby-lang.org/issues/16099#change-81039

* Author: nobu (Nobuyoshi Nakada)
* Status: Closed
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: 
* Backport: 2.5: DONE, 2.6: DONE
----------------------------------------
```
$ ruby -e 'File.binwrite("u.txt", "\xff\xfe\x00\x01")'
$ file u.txt 
u.txt: Little-endian UTF-16 Unicode text, with no line terminators
$ ruby -e 'p File.open("u.txt", "rb:bom|utf-8", &:external_encoding)'
#<Encoding:UTF-8>
```

The last result must be UTF-16LE.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-26 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16099.20190813142229@ruby-lang.org>
2019-08-13 14:22 ` [ruby-core:94326] [Ruby master Bug#16099] UTF-16LE BOM followed by '\0' is missed nobu
2019-08-18  6:53 ` [ruby-core:94412] " nagachika00
2019-08-26 16:44 ` [ruby-core:94581] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).