#3343 HIGH First D: Etoys don't support strings with accents

Zarro Boogs per Child bugtracker at laptop.org
Mon Oct 1 21:52:09 EDT 2007


#3343: Etoys don't support strings with accents
-----------------------------+----------------------------------------------
  Reporter:  juliano         |       Owner:  etoys                            
      Type:  defect          |      Status:  new                              
  Priority:  high            |   Milestone:  First Deployment, V1.0           
 Component:  etoys-activity  |     Version:  Development build as of this date
Resolution:                  |    Keywords:  accents vm                       
  Verified:  0               |  
-----------------------------+----------------------------------------------

Comment(by AlbertCahalan):

 Replying to [comment:1 juliano]:
 > Paulo Drummond reported to me that the accents works when running the
 last dev image on MacOS X. But the problem persists when running the image
 in any linux box. Is possible that this is squeak-linux bug.

 MacOS X would be using the MacRoman character set. (and UTF16-BE) MacRoman
 is plain 8-bit characters.

 Linux would be using UTF-8. (and UCS4-LE which is the same as UTF32-LE)

 Passing a UTF-8 byte into something like isalpha() is a likely source of
 error. Convert to UCS4-LE before doing that sort of thing.

 Be sure that locales enabled in the VM, not just the GUI. You can
 partially enable a locale to avoid some of the performance hit and bug
 potential. (for example, isalpha() would need LC_CTYPE)

-- 
Ticket URL: <https://dev.laptop.org/ticket/3343#comment:7>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list