[squeak-dev] The Inbox: System-monty.907.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Jan 22 15:55:03 UTC 2017
A new version of System was added to project The Inbox:
http://source.squeak.org/inbox/System-monty.907.mcz
==================== Summary ====================
Name: System-monty.907
Author: monty
Time: 22 January 2017, 10:54:27.872661 am
UUID: 96a2d0cb-8ed1-467d-9e62-24b719b285cc
Ancestors: System-mt.906
Removed sends of the old XMLParser's applyLanguageInfomation: (sic) from MOFile that I don't believe is still needed (it's leadingChar-based) and breaks installation of the newer SqueakMap XMLParser. If MOFile really needs this, the applyLanguageInfomation: (sic) extension methods on String and ByteString should be moved out of the old XMLParser package and into those classes.
=============== Diff against System-mt.906 ===============
Item was changed:
----- Method: MOFile>>loadStrings:pointers:encoding:languageEnvironment: (in category 'private') -----
loadStrings: strm pointers: tupple encoding: encodingName languageEnvironment: env
| strings rawStr str offsetTable lenTable |
offsetTable := tupple first.
lenTable := tupple second.
strings := Array new: nStrings.
1 to: nStrings do: [:index |
rawStr := self loadString: strm
pointer: (offsetTable at: index)
length: (lenTable at: index).
str := encodingName isNil ifTrue: [rawStr]
ifFalse: [ encodingName = 'utf8'
+ ifTrue: [rawStr utf8ToSqueak]
- ifTrue: [rawStr utf8ToSqueak applyLanguageInfomation: env]
ifFalse: [self error: 'this encoding isn''t supported']
].
strings at: index put: str.
].
^strings.!
Item was changed:
----- Method: MOFile>>translatedString: (in category 'private') -----
translatedString: index
"KNOWN PROBLEM: conversion is executed everytimes this method called"
| str |
str := translatedStrings at: index.
+ ^str utf8ToSqueak.
- ^str utf8ToSqueak applyLanguageInfomation: (Locale localeID: localeID) languageEnvironment.
!
More information about the Squeak-dev
mailing list
|