[Etoys] VM and accents with linux

Yoshiki Ohshima yoshiki at vpri.org
Mon Oct 29 19:01:59 EDT 2007


  One of the issues is some over-design in the VM done for file name
encodings and also of course there is a bug in the image.  Let's take
a look at the drag-and-drop issue.  If you rewrite Latin1Environment
class>>fileNameConverterClass to:


	^ UTF8TextConverter

and then invoke the latest VM with "-pathenc MACINTOSH" like:

  squeak -pathenc MACINTOSH etoys-dev.image

I can drag and drop a file with latin1 accent characters.

  For the keyboard input, change Latin1Environment
class>inputInterpreterClass.  There is a horrible chain of if's, but
there is a case for "platformName = 'unix'.  If you're using the
latest VM, checking if the system is running under Sugar is not
necessary.  You can rewrite the case to look like:

  platformName = 'unix' ifTrue: [^ UTF32InputInterpreter].

and it should work.

  Sorry for taking long time.

-- Yoshiki

More information about the Etoys mailing list