[Pharo-dev] [Pharo-users] Class name with diacritic character and Pharo

Hilaire hilaire at drgeo.eu
Sat Feb 2 16:07:43 EST 2019


Cool.

Attached a stack of the execution exposing the problem. Benoît sent it
to me. It should give some clues.

Hilaire

Le 02/02/2019 à 09:50, Sven Van Caekenberghe a écrit :
> That is also an already existing problem, it has to do with the decoding of environment variables.
>
> If I find the time, I will try to do a couple of tests this WE.

-- 
Dr. Geo
http://drgeo.eu

-------------- next part --------------
ZnUTF8Encoder>>error:
ZnUTF8Encoder>>errorIllegalContinuationByte
[ ((next := stream next ifNil: [ ^ self errorIncomplete ])
	bitAnd: 2r11000000) == 2r10000000
	ifTrue: [ code := (code bitShift: 6) + (next bitAnd: 2r00111111) ]
	ifFalse: [ ^ self errorIllegalContinuationByte ] ] in ZnUTF8Encoder>>nextCodePointFromStream: in Block: [ ((next := stream next ifNil: [ ^ self errorIncom...etc...
SmallInteger(Integer)>>timesRepeat:
ZnUTF8Encoder>>nextCodePointFromStream:
[ :stream | 
[ byteStream atEnd ]
	whileFalse: [ | codePoint |
		codePoint := self nextCodePointFromStream: byteStream.
		(codePoint > 255 and: [ stream originalContents isWideString not ])
			ifTrue: [ | wideString position |
				position := stream position.
				wideString := WideString from: stream originalContents.
				stream
					on: wideString;
					setFrom: position + 1 to: position ].
		stream nextPut: (Character value: codePoint) ] ] in ZnUTF8Encoder(ZnUTFEncoder)>>decodeBytes: in Block: [ :stream | ...
String class(SequenceableCollection class)>>new:streamContents:
String class(SequenceableCollection class)>>streamContents:
ZnUTF8Encoder(ZnUTFEncoder)>>decodeBytes:
ByteArray>>decodeWith:
ByteArray>>utf8Decoded
WindowsResolver(FileSystemResolver)>>resolveString:
WindowsResolver(PlatformResolver)>>directoryFromEnvVariableNamed:or:
WindowsResolver>>preferences
WindowsResolver(FileSystemResolver)>>resolve:
SystemResolver(FileSystemResolver)>>unknownOrigin:
SystemResolver(FileSystemResolver)>>resolve:
InteractiveResolver>>unknownOrigin:
[ self unknownOrigin: origin ] in InteractiveResolver>>resolve: in Block: [ self unknownOrigin: origin ]
IdentityDictionary(Dictionary)>>at:ifAbsent:
InteractiveResolver>>resolve:
FileLocator>>resolve
FileLocator(AbstractFileReference)>>fileSystem
FileLocator(AbstractFileReference)>>/
GlobalIdentifierStonPersistence(GlobalIdentifierPersistence)>>defaultPreferences
GlobalIdentifierStonPersistence(GlobalIdentifierPersistence)>>preferences
GlobalIdentifierStonPersistence(GlobalIdentifierPersistence)>>shouldCallPreviousPersistence
GlobalIdentifierStonPersistence(GlobalIdentifierPersistence)>>ensure:
GlobalIdentifier>>ensure
GlobalIdentifier class>>initializeUniqueInstance


More information about the Pharo-dev mailing list