How to set LOCALE in Windows console

2019-08-05 06:40发布

I need to set locale for a single console. I want to build Apache Wicket framework (Maven-based build), but it fails on test which relies on en_US locale. I don't want to skip tests. I don't want to skip the particular failing tests.

Is it possible? Or is changing the system-wide locale the only way?

Thanks

2条回答
【Aperson】
2楼-- · 2019-08-05 07:17

Nothing Wicket specific and I have not done this myself. But, a little bit of google led me to this: Re: maven-surefire-plugin and default locale which again leads to Surefire Plugin Using System Properties.

Hope that helps

查看更多
不美不萌又怎样
3楼-- · 2019-08-05 07:32

Searching for this, showed up this link, which talks about creating an xml file and invoking it from a batch file as described in this link.

查看更多
登录 后发表回答