如何在svn日志中强制输出英文日期?

如何在svn日志中强制输出英文日期?,svn,Svn,我需要svn日志以英语语言环境显示日期信息,尽管我在非英语窗口上工作。有没有办法强迫你学英语?我尝试设置LANG=C和LANGUAGE=C,但这没有帮助: E:\work\>set lang LANG=C LANGUAGE=C E:\work\>svn --version svn, version 1.8.11-SlikSvn-1.8.11-X64 (SlikSvn/1.8.11) X64 compiled Dec 9 2014, 13:44:31 on x86_64-mi

我需要svn日志以英语语言环境显示日期信息,尽管我在非英语窗口上工作。有没有办法强迫你学英语?我尝试设置LANG=C和LANGUAGE=C,但这没有帮助:

E:\work\>set lang
LANG=C
LANGUAGE=C

E:\work\>svn --version
svn, version 1.8.11-SlikSvn-1.8.11-X64 (SlikSvn/1.8.11) X64
   compiled Dec  9 2014, 13:44:31 on x86_64-microsoft-windows6.2.9200

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.8
  - handles 'http' scheme
  - handles 'https' scheme


E:\work\>svn log -l1
------------------------------------------------------------------------
r3663 | bialix | 2015-04-03 14:06:04 +0300 (Пт, 03 апр 2015) | 1 line
...
正如你在最后一行看到的,我有俄语版的date,我需要英语版的


我不想使用
svn log--xml
这对我的需要来说太多了。

我认为没有一种简单易行的方法来实现您的需要。这些是选项:

  • 如您所述,使用xml,然后在PowerShell中解析它并使用所需的区域设置写入日期

  • 临时更改全局设置(更改一次,然后执行您的操作,然后再更改回来)。有一个with
    cscript
    示例。还有一个,您可以在其中调用类似于
    control intl.cpl,,/f:“filename.xml”
    。只需要找出这个xml文件的格式

  • 输出中的7个星期文本和12个月文本。也许对你来说最好的办法就是在PowerShell中完成