Fwd: Re: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread lowster11
---: > 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

Re: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread lowster11
___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread lowster11
___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread lowster11
___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread lowster11
___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
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

RE: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
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

Re: MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Chris Wagner
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

MulitByte to WideCharacter using Perl on Windows

2005-02-17 Thread Erik Felton
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