Skip to content
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

Can't checkout svn repository that contains filenames in some UTF-8 symbols (Linux) #1215

Open
Ilya33 opened this issue Apr 3, 2019 · 2 comments

Comments

@Ilya33
Copy link
Contributor

Ilya33 commented Apr 3, 2019

Hello.

Can't checkout svn repository that contains filenames in some UTF-8 symbols (Linux Debian 9 and OpenBSD)

Rex version: 1.6.0
Subversion client version: 1.9.5 (r1770682)

filename examples:

  1. Grüßen
  2. ブランチ

I can checkout this repository from shell:

LC_ALL= LC_CTYPE=en_US.UTF-8 svn --non-interactive --trust-server-cert --username 'user' --password 'user' checkout https://host/svn/path/ /path/

but can't via Rex::SCM::Subversion because it force set LC_ALL=C in Rex::Interface::Exec::Local at line 75

LC_CTYPE= should be a current system locale

related stackoverflow topic about SVN-client: https://stackoverflow.com/questions/2116718/svn-error-cant-convert-string-from-native-encoding-to-utf-8

Best Regards, Ilya Pavlov

@Ilya33
Copy link
Contributor Author

Ilya33 commented Apr 11, 2019

I wrote the test for this issue https://github.com/Ilya33/Rex/blob/issue-1215-test/t/issue/1215.t.
This test requires a subversion tool otherwise it's skipped.

@Ilya33
Copy link
Contributor Author

Ilya33 commented Apr 12, 2019

Hmm...
Is there a reason to use LC_ALL=C in Rex::Interface::Exec::Local?
As I know LC_ALL should be used for debug purposes https://wiki.archlinux.org/index.php/Locale.
removing LC_ALL=C solve this problem

Best Regards, Ilya Pavlov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant