如何在 Windows 控制台中设置 LOCALE
我需要为单个控制台设置区域设置。我想构建 Apache Wicket 框架(基于 Maven 的构建),但它在依赖 en_US 语言环境的测试中失败。 我不想跳过测试。 我不想跳过特定的失败测试。
是否可以?或者更改系统范围的区域设置是唯一的方法吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Wicket 没有什么具体的内容,我自己也没有这样做过。但是,一些谷歌让我想到了这一点:
回复:maven-surefire-plugin 和默认区域设置再次导致使用系统属性的Surefire插件。
希望有帮助
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
搜索此内容,出现 此链接,其中讨论了创建 xml 文件并从批处理文件中调用它,如 此链接。
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.