Solved

panic: utf16_to_utf8: odd bytelen

Posted on 2004-09-27
4
835 Views
Last Modified: 2012-08-14
i have recently installed activestate on my laptop, which is running xp.  i tried to run a simple test perl script from the dos prompt and received this error message:
panic: utf16_to_utf8: odd bytelen

i installed cygwin and tried again, and got the same prob.  i googled this and  turned up this info:

(P) Something tried to call utf16_to_utf8 with an odd (as opposed
to even) byte length

how do i fix this?  i had no problem at my  work pc.  my home laptop has recently been upgraded.  it has a partitioned drive and is running vm ware.  i don't know if this has anything to do with the problem.  i doubt it.

i am new to this, so please be specific.

thanks
0
Comment
Question by:worldfear
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
sstouk earned 250 total points
ID: 12165099
This might be more serious than just simple troubleshooting.
I would change the version of the Perl engine to check if this is a version-related issue and if it is, would follow up with ActiveState and send them a support request with the sample of your script that you attempted to run as well as some details of your installation (version of Perl, location of the installation and some generic parameters from your laptop like installed Hotfixes and Option Packs as well as a list of software installed on the PC to see if there are any conflicts)
Collect all the info, at this not-working state, uninstall Perl, get an earlier version (if you have Perl 5.8, then get 5.6) and install it.
If you have installed an earlier version of Perl, then get the latest one just to change the version.

This might be one of those rare cases of untested variations of the code installation.

Any company tests the software before the release, but it is extremely hard to test all possible scenarious and fix the errors and sometimes it requires a fix or a code update.

It might be that even if it was tested before, later on some Microsoft Hotfix blocked functionality in an updated dll or upgraded a dll file, that Perl relies on, so there could be no way for ActiveState to actually prevent it from happening at the first place and it would  require a code change.

0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 250 total points
ID: 12165706
What was the test script you tried to run?
0
 

Author Comment

by:worldfear
ID: 12165821
its not the script, which is just to test the install:
print "test\n";
0
 

Author Comment

by:worldfear
ID: 12166162
ok, it seems i am a total moron.  let me explain.  i am a librarian and have just started taking a class on perl programming.  my only other programming experience is javascripting, vba with access, and a little java.  

i saved my program as a plx file and had no problem running it.  i know nothing about perl or unix or dos, but am taking classes.  

i'll split the points for this "very difficult question" (ha!)  if you want, you can enlighten me as to how perl runs scripts -- i am used to writing code in some kind of dev environment and compiling it.

thanks and sorry to take your time.  
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Strange perl issue 6 128
How to send output of ping to syslog (with timestamp and optional comments) 3 212
instmodsh - listing perl modules 2 80
iSeries PERL Scripts 7 159
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question