Skip Menu |

This queue is for tickets about the Win32-NetResource CPAN distribution.

Report information
The Basics
Id: 37237
Status: open
Priority: 0/
Queue: Win32-NetResource

People
Owner: Nobody in particular
Requestors: Copet_Eric [...] emc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: unicode version 0.056
Date: Mon, 30 Jun 2008 11:22:54 -0400
To: <bug-Win32-NetResource [...] rt.cpan.org>
From: Copet_Eric [...] emc.com
Win32::NetResource::AddConnection() Module version 0.056 Do this module is working with UNICODE remote share ? I have try to connect to an Unicode share (with the \x{3042}). This character is converted by Perl in UTF8: \xe3\x81\x82, and sent as 'UTF8' character on the network, but it should be the Unicode char 3042 in place. Using encode("UTF-16BE", $share) in the hash given as argument of the function AddConnection() doesn't solve the issue. Using WNetAddConnection2W() NetResource.xs file in the Win32 API call doesn't solve the issue too Any clue ? The perl version is: This is perl, v5.8.8 built for MSWin32-x86-multi-thread The OS is a Windows2000
It is currently not possible to use names outside the ANSI codepage with the Win32::NetResource module. This capability should certainly be added, but Unicode handling is currently in quite a mess in Perl on Windows: Perl internals assume that non-UTF8 data is encoded in Latin1 whereas most Win32 specific code assumes it is in ANSI (ACP). I think adding Unicode support to Win32::NetResource should wait until this issue has been resolved in core Perl first to avoid adding to the mess.