![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0 |
Assignee:
|
Thomas E Enebo
|
Created:
|
15/Nov/12 1:40 AM
|
Description:
|
Under windows:
Writing a newline in a UTF-16 encoded string, this newline is only 3 bytes long instead of 4.
Using this code:
File.open('test.txt', 'w:utf-16le') {|f| f.write "\n"}
you get (in hex): 0D 0A 00
instead of: 0D 00 0A 00
The same issue happens with big endian (utf-16be):
00 0D 0A
instead of:
00 0D 00 0A
This results in files that are unreadable after the first newline.
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Matthias Schwarze
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email