-
Notifications
You must be signed in to change notification settings - Fork 779
Locale problem #1690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
25-Jul-2017 14:13:53.240 SEVERE [http-nio-8080-exec-7] org.opensolaris.opengrok.util.Executor.exec Failed to read from process: /usr/bin/git |
Obviously, git fails to parse date in "English" format in Turkish locale. I wonder if it is possible to make git produce Turkish date. |
It seems git ignores system locale completely and it uses own format. I tried git to generate date according to locale but failed to do so. git executed by OpenGrok is /usr/bin/git log --abbrev-commit --abbrev=8 --name-only --pretty=fuller --date=rfc --follow -- crm/PACKAGE.ARGE.BODY.SQL Maybe instead of using iso format instead of rfc format and adjusting parser in OpenGrok java code will standardize dates along all locales. As I am not familier with OpenGrok architecture, I am not sure whether this is feasible. |
Found this answer-less 1 year old question: https://stackoverflow.com/questions/36191343/how-to-make-git-print-date-in-a-different-locale so it seems like The
It would be bad to return to the state before #1326 and hack GitRepository to use its own date parser. One idea would be to extend the cycle in |
Also, I wonder whether filing a bug against Git would be in order. |
Actually, I found in
The date format |
I wanted to rename this issue to "Locale problem with git" however this is probably not specific just to git, e.g. Mercurial behaves in the same way. |
Trying to find a SCM that prints the date in current locale, I found out that |
I am running debian wheezy system which uses old stable packages. At the moment it has git 1.7.1, via backports git 1.9.1. iso8601-strict and format:%c options are not available for both these versions. It is ok me to upgrade debian to ubuntu, or compile git from source, it may break some other production systems. |
Running
Apache Tomcat/8.5.16
JVM Oracle Java 1.8.0_141-b15
OpenGrok 1.1-rc5
I have source repositories which contains Turkish comments. Files are encoded with ISO-8859-9. My system which runs OpenGrok was in en_EN locale and after parsing repositories, turkish characters are displayed as ? (�) mark. While indexing, i specified locale while indexing as
sudo LC_ALL=tr_TR /path/to/opengrok/OpenGrok index /path/to/repos
Repos are git repos. A few SVN. git is important svn is not. When i checked xref gz files i see ı instead of � for character ı.
In order to see propery on web end, I had to change tomcat8 locale settings. After changing locale of tomcat8, i see turkish characters properly but now i cannot see revision history. When I click history, it gives me File Not Found error. When i switch back to system default locale, it works fine again.
My tomcat script environment variables;
export CATALINA_HOME=/opt/tomcat8
export JAVA_HOME=/opt/jdk/jdk1.8.0_141
export PATH=$JAVA_HOME/bin:$PATH
export LC_ALL=tr_TR
export JAVA_OPTS="$JAVA_OPTS -Duser.language=tr -D.user.region=TR"
The text was updated successfully, but these errors were encountered: