Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to disable Unicode?

Reply
Thread Tools

How to disable Unicode?

 
 
Hallvard B Furuseth
Guest
Posts: n/a
 
      06-24-2004
I have some perl5.6/5.004 scripts that I need to get quickly to work for
perl5.8. Is there an easy way to disable Unicode handling for a whole
script?

I've tried to insert
BEGIN { delete @ENV{qw(LANGUAGE LC_ALL LANG)}; }
use bytes;
but apparently Unicode mode is invoked before the script unsets those
variables. Besides, even if it worked I'd be nervous about not catching
all variables that can cause Unicode mode -- I need to be quite sure
Perl won't turn on Unicode mode because someone set a variable I didn't
know about.

--
Hallvard
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Disable Wireless Connection at Start-Up? Guy Quinn Wireless Networking 5 03-06-2011 01:50 PM
unable to disable network connection Peter Welk Wireless Networking 5 10-15-2007 09:39 AM
How to disable Wireless Network Connection w/o losing Network Brid =?Utf-8?B?SGF0bW9u?= Wireless Networking 1 12-16-2004 07:37 PM
Disable Broadcast??? Ben Wireless Networking 5 08-01-2004 09:12 PM



Advertisments