What is the alternative to the setlocale function of c in D? Thank you.

FrankLike 1150015857 at qq.com
Sat Jan 26 06:01:46 UTC 2019


On Friday, 25 January 2019 at 16:14:56 UTC, Kagamin wrote:
> also 
> http://blogs.microsoft.co.il/pavely/2009/07/23/changing-console-fonts/

That's so much code than next code!

/////////////////////////////////
extern(C) int setlocale(int,char*);

static this()
{
	import core.stdc.wchar_;
	import core.stdc.stdio;
	fwide(core.stdc.stdio.stdout,1);
	setlocale(0,cast(char*)"china");
}
/////////////////////////////////////////
After D2.078.1,it's not work.
why?
thank you.


More information about the Digitalmars-d-learn mailing list