What's the problem if add toMBSz to tango.sys.win32 ?

Lars Ivar Igesund larsivar at igesund.net
Thu Apr 24 12:26:28 PDT 2008


yidabu wrote:

> 
> Tango and almost all Tango based libs and tools have same issue:
> use tango.stdc.stringz.toStringz(name) or name ~ '\0' instead of
> toMBSz(name) for calling A version Windows API, that's wrong! program may
> crashed if multi byte name.

You can't say wrong without coming with a solution, or at least an
explanation why it is wrong.

> you might say, why not just create a ticket for Tango, right, I created it
> long time ago, but Kris seems not a MS fans :)
> http://www.dsource.org/projects/tango/ticket/653

This ticket is closed with no comments to its resolution - what is your
point? This doesn't have much to do with fan-dom either, we're just mostly
Unicode users.

> you might say, how about the tango.sys.win32.CodePage module?
> 
> but:
> 1 the name, "toMBSz" is better than "CodePage" in this case
> 2 the implementation, toMBSz is better in this case
> 2 Tango itself not use CodePage module in this case
> 
> It is too tedious to create bug tickets for every tango based libs,
> tools(if have this issue)!
> 
> I can't understand what's the problem if add toMBSz to tango.sys.win32, if
> problem, why Phobos have not this problem?

The problem is that you are not explaining the problem. You say there is a
problem, but you don't provide us with test cases that fail, neither give
proper resolutions. Bill did provide some clarifications in the previous
round, and some of those issues has been resolved, but some were still not
clear enough to figure out how they could be solved.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list