Skip to content

create-sibling: Use C.UTF-8 locale instead of C - #7273

Merged
yarikoptic merged 3 commits into
datalad:maintfrom
nobodyinperson:fix-create-sibling-language-unicode
Feb 21, 2023
Merged

create-sibling: Use C.UTF-8 locale instead of C#7273
yarikoptic merged 3 commits into
datalad:maintfrom
nobodyinperson:fix-create-sibling-language-unicode

Conversation

@nobodyinperson

Copy link
Copy Markdown
Contributor
  • supports special characters in filenames (like umlauts, etc.)
  • ls seems to fall back to predictable C locale if LC_ALL is set to an unknown locale, so this should be safe.
  • still: create-sibling currently fails silently if an umlaut is in the --target-dir and the remote ls doesn't handle it properly.

follow-up on PR #7265

- supports special characters in filenames (like umlauts, etc.)
- `ls` seems to fall back to predictable `C` locale if `LC_ALL` is set
  to an unknown locale, so this should be safe.
- still: `create-sibling` currently fails silently if an umlaut is in
  the `--target-dir` and the remote `ls` doesn't handle it properly.

follow-up on PR datalad#7265
@codecov

codecov Bot commented Jan 30, 2023

Copy link
Copy Markdown

Codecov Report

Base: 88.71% // Head: 90.71% // Increases project coverage by +1.99% 🎉

Coverage data is based on head (5b40500) compared to base (da4046c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##            maint    #7273      +/-   ##
==========================================
+ Coverage   88.71%   90.71%   +1.99%     
==========================================
  Files         326      326              
  Lines       44427    44429       +2     
  Branches     5919     5919              
==========================================
+ Hits        39414    40303     +889     
+ Misses       4998     4111     -887     
  Partials       15       15              
Impacted Files Coverage Δ
datalad/distribution/create_sibling.py 70.22% <100.00%> (ø)
datalad/_version.py 45.68% <0.00%> (ø)
datalad/tests/test_constraints.py 100.00% <0.00%> (ø)
datalad/tests/utils_pytest.py 89.18% <0.00%> (+0.10%) ⬆️
datalad/tests/test_utils.py 97.45% <0.00%> (+0.13%) ⬆️
datalad/distributed/ora_remote.py 79.80% <0.00%> (+0.27%) ⬆️
datalad/local/tests/test_add_archive_content.py 99.62% <0.00%> (+0.37%) ⬆️
datalad/support/tests/test_sshrun.py 100.00% <0.00%> (+1.72%) ⬆️
datalad/__init__.py 98.00% <0.00%> (+16.00%) ⬆️
datalad/tests/utils.py 52.75% <0.00%> (+52.75%) ⬆️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bpoldrack bpoldrack added semver-patch Increment the patch version when merged CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels Feb 7, 2023
@bpoldrack

Copy link
Copy Markdown
Member

Thanks, @nobodyinperson! I think this is fine.

@github-actions github-actions Bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Feb 7, 2023
Comment thread changelog.d/pr-7273.md Outdated
@yarikoptic

Copy link
Copy Markdown
Member

I wonder if this would not kick-back on systems/environments without UTF-8 support available somehow (may be some really minimalistic environment/filesystem) but I guess we will see. Thanks @nobodyinperson !

@yarikoptic
yarikoptic merged commit 3cca0db into datalad:maint Feb 21, 2023
@yarikoptic-gitmate

Copy link
Copy Markdown
Collaborator

PR released in 0.18.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants