[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01029] Re: Is this a bug?

From: Dave Thomas <Dave@...>
Date: 2000-01-03 18:07:16 UTC
List: ruby-talk #1029
gotoken@math.sci.hokudai.ac.jp (GOTO Kentaro) writes:

> Hi,
> 
> In message "[ruby-talk:01026] Is this a bug?"
>     on 00/01/03, Dave Thomas <Dave@thomases.com> writes:
> 
> >       = 1 
> >       print 爼 "\n"
> >
> >(where the variable is an 'a' with a grave accent), I get
> 
> Well, what charactor coding system did you used?  Is that iso-8859-1?

In the email, 8859-1. In the environment where I ran the Ruby script,
the locale was POSIX.

There seems to be some effect where an accented character causes Ruby
to eat the next character. I've found that this fails:

     print 爼 "\n"

But this works OK:

     print , "\n"

Regards

Dave



-- 
Thomas Consulting.
Innovative and successful developments with Unix, Java, C, and C++. 

Now in bookstores:
 The Pragmatic Programmer.  www.pragmaticprogrammer.com/ppbook/

In This Thread