Peter Graves <peter@armedbear.org> wrote:

On Thu, 23 Jun 2005 at 07:52:26 -0700, Pisin Bootvong wrote:
> Hi,
>
> I got ABCL to work, but it cannot display unicode text in Swing
> Correctly (the unicode string are directly in source code). By
> changing two places in Stream.java that mention encoding in read
> CHARACTER stream from "ISO-8859-1" to "UTF-8" I am able to have
> unicode string displayed on GUI correctly.
>
> Unless there is any need to keep the encoding as "ISO-8859-1" please
> apply this change.

ABCL doesn't really support Unicode at this point, even though it
should, and even though its CHARACTER type is really a wrapper of a
Unicode character.

The change you suggest might work for what you're trying to do, but I
don't think it's a complete general solution.

For example, FileStreams read an 8-bit byte and (in effect) just cast
it to a Java char.

And CHAR-CODE-LIMIT is 256.

So it's a somewhat larger project to provide reasonably complete and
consistent Unicode support.

Part of that larger project will be to define and implement various
external formats, such as UTF-8 and ISO-8859-1, to be used with the
standard CL functions like OPEN and LOAD that take an :EXTERNAL-FORMAT
keyword argument.

This is the long-term plan, but it's not a very high priority at the
moment. The high priorities at the moment are correctly (including ANSI
compliance) and performance; Unicode (along with MOP compliance, for
another example) are probably in the second tier of priorities.

In the absence of a complete solution, I think I'd rather leave
Stream.java alone, because, in effect, ISO-8859-1 amounts to a simple
cast, leaving the bits of the character unchanged, so at least it's
consistent with how FileStreams currently behave.

-Peter

Hi,

Thank you for clarification.
Seems like I'll be using my own patched ABCL for my project then.

Anyway,
If you could provide me more information on what need to be done to really be unicode enabled, I'll try to see if I can help.

(I supposed ANSI incompatibility was in edge cases, I think I'll only be using simple list function, some simple CLOS, simple macro, and Java GUI. So I guess patched ABCL will work fine for me).

Anyway, is there anyway to reach ABCL specific bug report and TODO?
Armedbear.org doesn't yet contains such thing. I'm not a hardcore programmer/hacker type but I'll try to help with low hanging fruit.

Keep up the good work.

Regards,

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com