Solved

panic: utf16_to_utf8: odd bytelen

Posted on 2004-09-27
4
819 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
Comment Utility
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
Comment Utility
What was the test script you tried to run?
0
 

Author Comment

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

Author Comment

by:worldfear
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now