Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007602 [Squeak] Multilingual major always 01-29-11 23:30 05-22-11 20:35
Reporter unoduetre View Status public  
Assigned To leves
Priority normal Resolution fixed Platform
Status resolved   OS
Projection none   OS Version
ETA none Fixed in Version trunk Product Version 4.1
  Product Build
Summary 0007602: CR and LF
Description Please run the following code:
file:=FileStream fileNamed: 'test.txt'.
file lineEndConvention: #lf.
file nextPut: Character cr.
file nextPutAll:'
' asWideString.
file lineEndConvention: #cr.
file nextPut: Character cr.
file nextPutAll:'
' asWideString
I've tested it on Linux (#lf convention), but it might work on other systems (that's why I've included the last four lines). The file 'test.txt' after doing these lines is: nl cr cr cr, and of course it should be nl nl cr cr.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0014036 - 263 - 263 - 263 - 263 - 263 - 263)
leves
01-30-11 04:07

This bug was introduced in 4.1 by the speedup of TextConverters (latin1Map and friends). The only solution I can imagine is to move all line end conversion related code to the TextConverters (at least for writing). This may also give us a small performance boost.
 
(0014037 - 158 - 158 - 158 - 158 - 158 - 158)
unoduetre
01-30-11 12:58

I suppose whole MultiByteFileStream should get some refactoring. In a week I have more time to do something with it. Now I've simply applied some dirty patch.
 
(0014117 - 52 - 52 - 52 - 52 - 52 - 52)
leves
05-22-11 20:35

Fixed by Multilingual-ul.144...151 and Files-ul.110.
 

- Issue History
Date Modified Username Field Change
01-29-11 23:30 unoduetre New Issue
01-30-11 03:42 leves Status new => assigned
01-30-11 03:42 leves Assigned To  => leves
01-30-11 04:07 leves Note Added: 0014036
01-30-11 12:58 unoduetre Note Added: 0014037
05-22-11 20:35 leves Status assigned => resolved
05-22-11 20:35 leves Fixed in Version  => trunk
05-22-11 20:35 leves Resolution open => fixed
05-22-11 20:35 leves Note Added: 0014117


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
45 total queries executed.
35 unique queries executed.
Powered by Mantis Bugtracker