[squeak-dev] The Trunk: Multilingual-dtl.262.mcz
David T. Lewis
lewis at mail.msen.com
Wed Feb 2 17:01:25 UTC 2022
On Wed, Feb 02, 2022 at 09:05:18AM +0100, Marcel Taeumel wrote:
> Hi Dave --
> What's the expected encoding after decompressing segments of the stream? Is it already String objects in Squeak's internal encoding? The idea of #setConverterForCode is to ensure that we consistently use UTF8 when filing source code in/out in chunk form.
I do not know the answer to your question, but #setConverterFromCode
is sent by FileDirectory class>>#openSources:andChanges: which gave
a DNU when opening a SqueakV50.stc compressed sources file.
I moved the existing FileStream>>setConverterForCode method up one
level to handle that case.
> Am 01.02.2022 01:45:34 schrieb commits at source.squeak.org <commits at source.squeak.org>:
> David T. Lewis uploaded a new version of Multilingual to project The Trunk:
> ==================== Summary ====================
> Name: Multilingual-dtl.262
> Author: dtl
> Time: 31 January 2022, 7:45:20.779281 pm
> UUID: e60348fe-c771-4c52-a591-0769dbf29a58
> Ancestors: Multilingual-mt.261
> Move FileStream>>setConverterForCode up to ReadWriteStream for opening CompressedSourceStream on a .stc compressed sources file.
> =============== Diff against Multilingual-mt.261 ===============
> Item was removed:
> - ----- Method: FileStream>>setConverterForCode (in category '*Multilingual-accessing') -----
> - setConverterForCode
> - "Backstop. See MultiByteFileStream."!
> Item was added:
> + ----- Method: ReadWriteStream>>setConverterForCode (in category '*Multilingual-accessing') -----
> + setConverterForCode
> + "Backstop. See MultiByteFileStream."!
More information about the Squeak-dev