[squeak-dev] Q: FileStream class>>#writeSourceCodeFrom:* and
*TextConverter
Klaus D. Witzel
klaus.witzel at cobss.com
Sat Jul 19 12:55:45 UTC 2008
Hi,
I'm trying to successfully fileOut and fileIn class and method comments
with characters codePoint <= 255 (the "european" range of byte size
characters).
Fileout works but the file looks to have prefix from #writeBOMOn: of
UTF8TextConverter and file suffix is ".st" or ".cs". On fileIn this fails
with syntax error :( and Google search did not help. Has anyone experience
with source code fileOut/fileIn for the "european" character range?
Did a quick shot on FileStream class>>#writeSourceCodeFrom:*, with
#isAsciiString replaced by #isWideString (followed by ifFalse:ifTrue:),
filed out again and then fileIn was happy again.
I understand this is perhaps not really sort of bug, but want a bit more
than just the ascii characters. So what do you Squeakers recommend, how
should that be done in a Squeak platform compatible way?
TIA.
/Klaus
More information about the Squeak-dev
mailing list
|