---:
> Date: Thu, 17 Feb 2005 12:29:01 -0800 (PST)
> From: <[EMAIL PROTECTED]>
> To: Erik Felton <[EMAIL PROTECTED]>,
> perl-win32-users@listserv.ActiveState.com
> CC:
> Subject: Re: MulitByte to WideCha
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Here is my functional solution:
#!/usr/bin/perl -w
use strict;
use POSIX;
use POSIX qw(mbstowcs wcstombs);
my $MB_string = "My String";
my $str_len = length( $MB_string) ;
my $WC_string = " " x $str_len; #allocate 2x the space
print "\$MB_string = [$MB_string]\n\n
ll post my solution when (if) I get it.
Thanks
Erik
-Original Message-
From: Chris Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 17, 2005 1:24 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: MulitByte to WideCharacter using Perl on Windows
According to my 'perld
According to my 'perldoc posix' these commands are not really implemented.
Are you sure that they "should" work? Have u seen that someone else got
them to work the way u want them to? Can u do it with unicode? I've gotten
perl to print wide characters in that and Japanese before.
mbstowcs
Hello,
I have found numerous Perl POSIX man pages that state that
mbstowcs() and wcstombs() perform just like the C equivalent.
Unfortunately I can not seem to make my test case work.
In My example below the call to mbstowcs() returns 9, which is
the correct number of characters it