Re: win32 from master: unicode functions by default?

2015-11-13 Thread Kagamin via Digitalmars-d-learn
On Friday, 13 November 2015 at 08:44:33 UTC, Vladimir Panteleev wrote: If only Microsoft would have adopted UTF-8 as an 8-bit locale... if only. Then you would need to do all TCHAR stuff from windows headers in order to conditionally compile for utf-8 for say Windows 20 and for utf-16 for pre

Re: win32 from master: unicode functions by default?

2015-11-13 Thread Vladimir Panteleev via Digitalmars-d-learn
On Friday, 13 November 2015 at 08:10:12 UTC, Kagamin wrote: On Thursday, 12 November 2015 at 15:58:53 UTC, Jonathan M Davis wrote: It seems pretty wrong for the A versions to be the default though... For my money it's a plain bug in bindings :) Yep, we don't support non-Unicode Windows versi

Re: win32 from master: unicode functions by default?

2015-11-13 Thread Kagamin via Digitalmars-d-learn
On Thursday, 12 November 2015 at 15:58:53 UTC, Jonathan M Davis wrote: It seems pretty wrong for the A versions to be the default though... For my money it's a plain bug in bindings :) Still, even in C++ code, I've generally taken the approach of using the W functions explicitly in order to a

Re: win32 from master: unicode functions by default?

2015-11-13 Thread Kagamin via Digitalmars-d-learn
On Friday, 13 November 2015 at 05:09:12 UTC, Mike Parker wrote: I've gotten into the same habit. But it appears the switch to dynamic loading has made it so that only the A versions or only the W versions are available. You no longer get both. https://github.com/D-Programming-Language/druntime

Re: win32 from master: unicode functions by default?

2015-11-12 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 12 November 2015 at 15:58:53 UTC, Jonathan M Davis wrote: On Thursday, November 12, 2015 05:08:24 Mike Parker via version=Unicode on the compiler command line. It seems pretty wrong for the A versions to be the default though... Still, even in C++ code, I've generally taken t

Re: win32 from master: unicode functions by default?

2015-11-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, November 12, 2015 05:08:24 Mike Parker via Digitalmars-d-learn wrote: > On Thursday, 12 November 2015 at 04:58:42 UTC, Andre wrote: > > Hi, > > > > by using the win32 library from master, the functions aliases > > to the ansi windows functions (...A) instead of the unicode > > functio

Re: win32 from master: unicode functions by default?

2015-11-11 Thread Andre via Digitalmars-d-learn
On Thursday, 12 November 2015 at 05:08:25 UTC, Mike Parker wrote: On Thursday, 12 November 2015 at 04:58:42 UTC, Andre wrote: Hi, by using the win32 library from master, the functions aliases to the ansi windows functions (...A) instead of the unicode functions (...W). Is there a way to contro

Re: win32 from master: unicode functions by default?

2015-11-11 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 12 November 2015 at 04:58:42 UTC, Andre wrote: Hi, by using the win32 library from master, the functions aliases to the ansi windows functions (...A) instead of the unicode functions (...W). Is there a way to control this behavior beside using the explicit function names (A/W)?

win32 from master: unicode functions by default?

2015-11-11 Thread Andre via Digitalmars-d-learn
Hi, by using the win32 library from master, the functions aliases to the ansi windows functions (...A) instead of the unicode functions (...W). Is there a way to control this behavior beside using the explicit function names (A/W)? Kind regards André