Activeperl 5.6 wrong ascii in Windows98 
Author Message
 Activeperl 5.6 wrong ascii in Windows98

Using the chr() function with a value of 10 returns a carriage return
character instead of the proper ascii character.  Any ideas on how to
get windows, or Perl, to return the proper value.

Thanks,
Michael

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 Activeperl 5.6 wrong ascii in Windows98

Quote:
> Using the chr() function with a value of 10 returns a carriage return
> character instead of the proper ascii character.  Any ideas on how to
> get windows, or Perl, to return the proper value.

File a bug report via perlbug, then use the next version when it's fixed.

If you can compile from the source, there may be another option, of
course. Cheers!

--
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



Wed, 18 Jun 1902 08:00:00 GMT  
 Activeperl 5.6 wrong ascii in Windows98
Michael,

Quote:

> Using the chr() function with a value of 10 returns a carriage
> return character instead of the proper ascii character.  Any ideas
> on how to get windows, or Perl, to return the proper value.

  Ehm... and what should be the proper ASCII character with code 10?

        Best regards,
                Marco



Wed, 18 Jun 1902 08:00:00 GMT  
 Activeperl 5.6 wrong ascii in Windows98

Quote:

>Michael,


>> Using the chr() function with a value of 10 returns a carriage
>> return character instead of the proper ascii character.  Any ideas
>> on how to get windows, or Perl, to return the proper value.

>  Ehm... and what should be the proper ASCII character with code 10?

linefeed :)

Michel.



Wed, 18 Jun 1902 08:00:00 GMT  
 Activeperl 5.6 wrong ascii in Windows98


Quote:
> Using the chr() function with a value of 10 returns a carriage return
> character instead of the proper ascii character.  Any ideas on how to
> get windows, or Perl, to return the proper value.

> Thanks,
> Michael

Michael,

binmode(STDOUT);
$char = chr(10);
print $char;

Without binmode the script emits 0D0A (a nice DOS end-of-line sequence).
With binmode the script emits 0A, just what you were looking for.

Digitally yours,

Kevin Sproule



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. ActivePerl 5.6 and ImageMagick

2. ActivePerl, DCOM & Windows98

3. CPAN module installs on Windows98 with ActivePerl and Cygwin20.1

4. gd module for ActivePerl 5.6

5. XML::Parser under NT4.0 & ActivePerl 5.6

6. ActivePerl 5.6 GPF when use RE /\X/

7. Out of Memory - ActivePerl 5.6/Win98 SE 192MB RAM

8. ActivePerl 5.6 on NT 4.0/IIS4 not working

9. Installing ActivePerl 5.6 on Linux/Apache shared website

10. PPM not work on ActivePerl 5.6 for NT ?

11. embedded ActivePerl 5.6 GUI code demo?

12. installing ActivePerl 5.6

 

 
Powered by phpBB® Forum Software