ActiveState Community

PerlApp on Chinese/Japanese systems crashing?

Posted by mherger on 2007-07-23 01:30

Hi

we've had repeated reports about a PerlApp crashing on Chinese and Japanese Windows systems. It crashes with an error message "Unknown encoding: cp950".

Are there known issues with PDK7 on Chinese/Japanese Windows?

Michael

robincui | Mon, 2007-11-05 19:01

I meet the same problem, when i use the function: decode("euc-cn",$somestr);
after perlapp compiled the script to a exe file,it crashes when running with the error msg: unknow encoding: euc-cn.

Debug the Encode module, I find out we must 'use Encode::CN',so the exe file will not crash.

In fact,PDK6 have not the same problem,maybe something changed in PDK7.

cp950 is included in the module:Enccode::TW, i suggest use Encode::TW.

mherger | Tue, 2007-11-06 00:25

That's a feature: according to support removing those additional encodings reduced memory consumption by 2MB. Thus they have to be included manually if needed. And it's all in the release notes (didn't read them neither...)

http://aspn.activestate.com/ASPN/docs/PDK/7.0/Release.html

robincui | Tue, 2007-11-06 07:23

Sorry, I forgot reading the release notes.
This is my first time to try using PDK,the same code from others on the PDK 6.0 looked abnormal on PDK7.0.
I was something impatient so as to forget to read and used to read source code of encode module.