19 Jul 14:54
Q: FileStream class>>#writeSourceCodeFrom:* and *TextConverter
From: Klaus D. Witzel <klaus.witzel <at> cobss.com>
Subject: Q: FileStream class>>#writeSourceCodeFrom:* and *TextConverter
Newsgroups: gmane.comp.lang.smalltalk.squeak.general
Date: 2008-07-19 12:55:45 GMT
Subject: Q: FileStream class>>#writeSourceCodeFrom:* and *TextConverter
Newsgroups: gmane.comp.lang.smalltalk.squeak.general
Date: 2008-07-19 12:55:45 GMT
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
RSS Feed