REBOL3 tracker
  0.9.12 beta
Ticket #0002186 User: anonymous

Project:

Previous Next
rss
TypeBug Statussubmitted Date18-Nov-2014 06:33
Versionalpha 111 CategoryPorts Submitted byabolka
PlatformAll Severitycrash Prioritynormal

Summary READ/string crashes for UCS4 ("UTF-32") LE/BE files with a BOM
Description See the example code.
Example code
>> read %fixtures/umlauts-utf32le.txt
== #{FFFE0000E4000000F6000000FC0000000A000000}

>> read/string %fixtures/umlauts-utf32le.txt
(R3 crashes)  ;; Expected: "äöü^/"

-- 

>> read %fixtures/umlauts-utf32be.txt
== #{0000FEFF000000E4000000F6000000FC0000000A}

>> read %fixtures/umlauts-utf32be.txt
(R3 crashes)  ;; Expected: "äöü^/"

Assigned ton/a Fixed in- Last Update20-Jan-2015 06:07

Attached Files

Comments
(0004543)
abolka
18-Nov-2014 06:46

As we neither internally support UCS4 at the moment nor have a decoder ready (although the latter would be easy to remedy), causing an "unsupported encoding" error is probably the best solution at the moment.
(0004548)
abolka
20-Jan-2015 06:07

In the core-tests suite.

Date User Field Action Change
20-Jan-2015 06:07 abolka Comment : 0004548 Added -
18-Nov-2014 06:46 abolka Comment : 0004543 Added -
18-Nov-2014 06:33 abolka Ticket Added -