Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Help with RC4

by hbo (Monk)
on Jul 26, 2004 at 05:58 UTC ( #377359=note: print w/ replies, xml ) Need Help??


in reply to Help with RC4

I assume you have RHEL3, given that version of Perl. There is a bug in that Perl that shows up when reading data from a file. It's releated to unicode. RHEL3's default locale is 'lang.UTF8'. If you set the LANG to 'C' before running your script, it works around that particular problem. You can't do $ENV{LANG}='C'; in your script; by then it's too late. You have to do something like this (example in bash):

> export LANG=C > perl myscript.pl
So you could write a bash wrapper that did that as a workaround.

Unfortunately, bugzilla.redhat.com is down at the moment or I'd chase down the entry for you. The last I heard, it was supposed to be fixed in update 3. I have just confirmed that that is the problem here.

If you can't get by with a bash wrapper, I suggest that you build Perl yourself from source.

"Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers


Comment on Re: Help with RC4
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://377359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-30 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls