Hi Gaetan,

>> sincere apologies, I believe you have hit a bug that we have also 
>> encountered on some of our systems. Could you please state your operating 
>> system and Perl version?
> 
> It is Debian Squeeze 6.0 and indeed perl 5.10.
> Yes this seem related to utf8, I can see the bytes if I use vi to open the 
> file.

yep, that's the problem. I've seen this with Perl 5.10 both on Debian Squeeze 
and on Solaris 11 (Sparc), so it is not operating system related.

BTW, in December I could pin the problem down to the method 
OpenXPKI::read_file. There is already a suspicious comment about binmode and 
utf8, indicating a possible problem here. I spent several hours modifying this 
function, fiddling with UTF8 flags, binmode and so on - without any success. 
The raw file the method was reading was perfectly OK, but the data in $result 
was subject to a superfluous UTF8 encoding - which I could not strip away 
without potentially affecting other parts of the system.

Regards,

Martin



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to