[Pharo-project] COG and locale
Hello, I have been experimenting COG VM to use it with Dr.Geo for the XO OLPC laptop. It really improves a lot the user experience and the interactive geometric sketch get more snappy. However I have noted the locale does not seem to work. When I run the same image with a COG VM executing this statement returns: Locale current a Locale(sr-) With a stock VM (where locale is working): Locale current a Locale(fr-FR) Are there any known issues with Locale with COG? Hilaire -- Education 0.2 -- http://blog.ofset.org/hilaire
Le 21/02/2011 21:44, Hilaire Fernandes a écrit :
Le 21/02/2011 21:36, Hilaire Fernandes a écrit :
Are there any known issues with Locale with COG?
Tracking down to the primitive calls in the class Locale, those always return empty string. Primitive are for now unknown land for me.
So far, the Locale plugin is loaded Smalltalk listLoadedModules. #('SocketPlugin VMMaker-oscog.40 (i)' 'Matrix2x3Plugin VMMaker-oscog.40 (i)' 'FloatArrayPlugin VMMaker-oscog.40 (i)' 'JPEGReadWriter2Plugin VMMaker-oscog.40 (i)' 'DropPlugin VMMaker-oscog.40 (i)' 'B2DPlugin VMMaker-oscog.40 (i)' 'ZipPlugin VMMaker-oscog.40 (i)' 'LargeIntegers v1.5 VMMaker-oscog.40 (i)' 'LocalePlugin VMMaker-oscog.40 (e)' 'BitBltPlugin VMMaker-oscog.40 (i)' 'SecurityPlugin VMMaker-oscog.40 (i)' 'FilePlugin VMMaker-oscog.40 (i)' 'MiscPrimitivePlugin VMMaker-oscog.40 (i)')
On 21 Feb 2011, at 21:44, Hilaire Fernandes wrote:
Le 21/02/2011 21:36, Hilaire Fernandes a écrit :
Are there any known issues with Locale with COG?
Tracking down to the primitive calls in the class Locale, those always return empty string. Primitive are for now unknown land for me.
Hilaire
Might be related to http://code.google.com/p/pharo/issues/detail?id=3264 ?
Le 21/02/2011 22:51, Sven Van Caekenberghe a écrit :
Tracking down to the primitive calls in the class Locale, those always return empty string. Primitive are for now unknown land for me.
Hilaire
Might be related to http://code.google.com/p/pharo/issues/detail?id=3264 ?
Looks like the opposite problem. So far, it looks like the Locale C code file in COG was massively refactored. I will try with another Linux build of COG Hilaire -- Education 0.2 -- http://blog.ofset.org/hilaire
Le 22/02/2011 11:33, Hilaire Fernandes a écrit :
So far, it looks like the Locale C code file in COG was massively refactored.
I will try with another Linux build of COG
I tried with linux build VM.r2361 and locale does not work om my system (Ubuntu 10.04 LTS). I don't have other system to try (At least on OLPC XO Fedora based distribution the problem is the same). If COG VM users could try to execute this "Locale current" and respond here the result, we could have and idea if the problem is specific to OS version or OS family. On both Ubuntu 10.04 LTS and OLPC OS 10.1.2 "Locale current" returns the wrong locale (locale primitive returns an empty string) Hilaire
participants (2)
-
Hilaire Fernandes -
Sven Van Caekenberghe