Possible bug?

Claes Wikstrom klacke@REDACTED
Wed Feb 3 10:10:44 CET 1999


Per Hedeland writes:
 > Klacke wrote:
 > >Basically Erlang doesn't really support anything but plain ascii
 > >today. However the usage of non-ascii characters should not
 > >lead to compile time errors, only to ugly printouts.
 > 
 > Actually, if you (on Solaris) set environment LANG=sv, or
 > LC_CTYPE=iso_8859_1, your example produces a perfectly beautiful
 > printout:
 > 
 > 1> a:a().
 > "åääää"

On the other hand, if we try to use non-ascii chracters in
i.e function names, it still doesn't work as expected.

-module(a).

åääää() -> 
	a.

Does indeed give a compile time error. Sadly enough we need to 
qoute the function name (which is an atom)

'åääää'() -> 
	a.

And now it get so ugly so that in my opinion it's better to stick
with ascii-chars in the source code.

/klacke




More information about the erlang-questions mailing list