The entire Win32 abstraction layer for perl is implemented in win32/Win32.c and win32/Win32io.c. Ideally you would put together a set of patches against those files that would allow a pragma to control the behaviour of widechars. For instance

use widechar;

would do the trick. The problem you are going to face is that there are only about three or four active Perl develops who are on Win32, and they are unlikely to undertake this stuff without help from an interested party who can do things like test. So for instance if I saw you post a set of patches aimed at this objective, but not quite polished enough to be applied Id probably run with the ball and help you get them bedded down. The fact that USING_WIDE was removed probably indicates that whomever was most knowledgable about the feature felt it was dangerous to leave it in. Which IMO suggests that there is an alternate approach that would be fine.

From what I can see, the best way to get your clients what they want to is to get it done in perl itself. Which means interacting with the perl5porters list. Then when 5.10 comes out (this Christmas hopefully) they can use the nice new shiny stuff that you helped put in it. :-)

---
$world=~s/war/peace/g


In reply to Re: Japanese filenames and USING_WIDE in win32.h by demerphq
in thread Japanese filenames and USING_WIDE in win32.h by almut

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.