[#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:01034] Re: Is this a bug?

From: Dave Thomas <Dave@...>
Date: 2000-01-03 18:41:52 UTC
List: ruby-talk #1034
Dave Thomas <Dave@thomases.com> writes:

> Guy Decoux suggested changing DEFAULT_KCODE, but a
> quick grep suggests it's only used in the re.c module.

But the re module is used to validate identifiers, and setting
DEFAULT_KCODE=none now makes the following fail to compile:

   = 1
 >
   /tc/dave/play/line.rb:1: Invalid char '爭 in expression
   /tc/dave/play/line.rb:1: parse error
   = 1


So the problem is fixed (thanks, Guy!)

I'm wondering if configure.in needs to be changed to pick a default
for DEFAULT_KCODE somehow based on the machine's environment.

As a secondary issue, what does all this mean for the portability of
Ruby source. If your system is compilers with EUC and mine with NONE,
will I not be able to compile your programs?

Regards (and thanks again)

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