[squeak-dev] The Inbox: Multilingual-tonyg.234.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 22 11:14:11 UTC 2018


A new version of Multilingual was added to project The Inbox:
http://source.squeak.org/inbox/Multilingual-tonyg.234.mcz

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

Name: Multilingual-tonyg.234
Author: tonyg
Time: 22 January 2018, 11:13:59.777714 am
UUID: ca658d2d-6ee8-4e37-b776-54b30f826fe9
Ancestors: Multilingual-dtl.233

Repair bug identified in MultilingualTests-tonyg.28.

=============== Diff against Multilingual-dtl.233 ===============

Item was changed:
  ----- Method: MultiByteFileStream>>upToPosition: (in category 'accessing') -----
  upToPosition: anInteger
  	"Answer a subcollection containing items starting from the current position and ending including the given position. Usefully different to #next: in that positions measure *bytes* from the file, where #next: wants to measure *characters*."
  	^self collectionSpecies new: 1000 streamContents: [ :stream |
  		| ch |
+ 		[ (self position >= anInteger) or: [(ch := self next) == nil] ]
- 		[ (ch := self next) == nil or: [ self position > anInteger ] ] 
  			whileFalse: [ stream nextPut: ch ] ]!



More information about the Squeak-dev mailing list