How to set LOCALE in Windows console

99封情书 提交于 2019-12-13 17:26:26

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/4590981/how-to-set-locale-in-windows-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!