[squeak-dev] The Trunk: Monticello-mt.770.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jan 29 10:01:47 UTC 2022

Marcel Taeumel uploaded a new version of Monticello to project The Trunk:

==================== Summary ====================

Name: Monticello-mt.770
Author: mt
Time: 29 January 2022, 11:01:45.317024 am
UUID: 5c68eef4-9384-ee45-b945-07e9b835c188
Ancestors: Monticello-mt.769

Complements Multilingual-mt.261

=============== Diff against Monticello-mt.769 ===============

Item was changed:
  ----- Method: MCMczReader>>contentsForMember: (in category 'private') -----
  contentsForMember: member
  	^[(member contentStreamFromEncoding: 'utf8') text contents] on: InvalidUTF8
  		do: [:exc | 
  			"Case of legacy encoding, presumably it is latin-1.
  			But if contents starts with a null character, it might be a case of WideString encoded in UTF-32BE"
  			| str |
+ 			self flag: #discuss. "mt: Isn't our mac-roman legacy more likely than latin-1?"
  			str := (member contentStreamFromEncoding: 'latin1') text.
  			exc return: ((str peek = Character null and: [ str size \\ 4 = 0 ])
  				ifTrue: [WideString fromByteArray: str contents asByteArray]
  				ifFalse: [str contents])]!

More information about the Squeak-dev mailing list