You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "efegokdemir (via GitHub)" <gi...@apache.org> on 2026/09/24 10:59:04 UTC

[PR] fix: override LC_ALL for svn commands [maven-scm]

efegokdemir opened a new pull request, #1410:
URL: https://github.com/apache/maven-scm/pull/1410

   ## Summary
   
   Ensure Subversion command output remains English even when the caller exports a conflicting `LC_ALL`.
   
   ## Changes
   
   - Set `LC_ALL=C` when constructing SVN commands.
   - Set `LC_ALL=C` for executed SVN commands alongside the existing message locale.
   
   ## Testing
   
   - `mvn -pl maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe -am -Dtest=SvnCommandLineUtilsTest -Dsurefire.failIfNoSpecifiedTests=false -DskipITs -Dcheckstyle.skip -Drat.skip -Dspotless.skip=true test` — passed
   - `git diff --cached --check` — passed
   
   Fixes #1375


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "olamy (via GitHub) via issues" <is...@maven.apache.org>.
olamy commented on PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#issuecomment-6932944083

   people still using svn? really? :rofl: 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "michael-o (via GitHub) via issues" <is...@maven.apache.org>.
michael-o commented on PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#issuecomment-7016459042

   Using C is wrong, this will mangle commit messages which have multibyte chars. One has to use C.UTF-8. Please align with https://github.com/apache/maven-scm/pull/1376.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "michael-o (via GitHub) via issues" <is...@maven.apache.org>.
michael-o commented on PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#issuecomment-7016407007

   > people still using svn? really? 🤣
   
   ABsolutely, and it works very well. Much better for externals and binary files than Git.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "slawekjaranowski (via GitHub) via issues" <is...@maven.apache.org>.
slawekjaranowski commented on PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#issuecomment-6929763793

   Looks similar to:
   -  #1376


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@maven.apache.org>.
github-actions[bot] commented on PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#issuecomment-6932042193

   <!-- license-declaration-check -->
   ### ⚠️ License declaration missing
   
   The pull request description must contain at least one of the following lines with a **checked** box (`[x]`):
   
   ```markdown
   - [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   ```
   
   This comment will be hidden automatically once the description is fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: override LC_ALL for svn commands [maven-scm]

Posted by "michael-o (via GitHub) via issues" <is...@maven.apache.org>.
michael-o commented on code in PR #1410:
URL: https://github.com/apache/maven-scm/pull/1410#discussion_r4632369702


##########
maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/SvnCommandLineUtils.java:
##########
@@ -125,6 +126,7 @@ public static Commandline getBaseSvnCommandLine(
     public static int execute(Commandline cl, StreamConsumer consumer, CommandLineUtils.StringStreamConsumer stderr)
             throws CommandLineException {
         // SCM-482: force English resource bundle
+        cl.addEnvironment("LC_ALL", "C");
         cl.addEnvironment("LC_MESSAGES", "en");

Review Comment:
   This value isn't valid. It must be a locale, not a language.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org