[squeak-dev] Q: FileStream class>>#writeSourceCodeFrom:*
and *TextConverter
Yoshiki Ohshima
yoshiki at vpri.org
Wed Jul 23 15:46:58 UTC 2008
At Sat, 19 Jul 2008 14:55:45 +0200,
Klaus D. Witzel wrote:
>
> 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?
What version is it? Is should be isAsciiString, yes, and The Etoys
image is in that way.
-- Yoshiki
More information about the Squeak-dev
mailing list
|