[squeak-dev] The Trunk: Multilingual-nice.160.mcz

Levente Uzonyi leves at elte.hu
Thu May 23 22:48:15 UTC 2013


On Thu, 23 May 2013, commits at source.squeak.org wrote:

> Nicolas Cellier uploaded a new version of Multilingual to project The Trunk:
> http://source.squeak.org/trunk/Multilingual-nice.160.mcz
>
>  ----- Method: UTF8TextConverter class>>errorMalformedInput: (in category 'utilities') -----
>  errorMalformedInput: aString
>  	"Invalid UTF-8 input has been detected in the given string.
>  	Raise an error if strict conversions are enabled, otherwise allow
>  	the original string to be returned."
>
>  	self strictUtf8Conversions ifTrue:[
> + 		(InvalidUTF8 new string: aString) signal.

I think using cascade is better in this case:

 		InvalidUTF8 new string: aString; signal


Levente

> - 		self error: 'Invalid utf8: ', aString
>  	].
>
>  	^aString!
>
>
>


More information about the Squeak-dev mailing list