'From etoys2.3 of 28 November 2007 [latest update: #1867] on 1 January 2008 at 10:31:18 pm'! "Change Set: latin1DefaultPathEncoding-yo Date: 1 January 2008 Author: Yoshiki Ohshima Change the default path encoding to UTF8."! !Latin1Environment class methodsFor: 'subclass responsibilities' stamp: 'yo 1/1/2008 22:26'! fileNameConverterClass ^ self systemConverterClass ! ! !Latin1Environment class methodsFor: 'subclass responsibilities' stamp: 'yo 1/1/2008 22:26'! systemConverterClass | platformName osVersion | platformName := SmalltalkImage current platformName. osVersion := SmalltalkImage current getSystemAttribute: 1002. (platformName = 'Win32' and: [osVersion = 'CE']) ifTrue: [^ MacRomanTextConverter]. platformName = 'Win32' ifTrue: [^ (self win32VMUsesUnicode) ifTrue: [UTF8TextConverter] ifFalse: [Latin1TextConverter]]. platformName = 'Mac OS' ifTrue: [^ (('10*' match: SmalltalkImage current osVersion) and: [(SmalltalkImage current getSystemAttribute: 3) isNil]) ifTrue: [UTF8TextConverter] ifFalse: [MacRomanTextConverter]]. platformName = 'unix' ifTrue: [^ UTF8TextConverter]. ^ MacRomanTextConverter! !