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

Teach the installer to create Cygwin symlinks even in non-US locales #265

Merged

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 5, 2019

Since git-for-windows#255, we create
the `/dev/{fd,stdin,stdout,stderr}` symlinks in the installer
explicitly, without relying on Git Bash's initial `post-install`
scripts.

However, the method chosen to create those (Cygwin-style) symlinks seems
to work only in US locales.

Let's jump through another hoop and make sure that it works also in
non-US locales.

The approach implemented in this patch was inspired by
https://stackoverflow.com/questions/38617829/writing-binary-file-in-inno-setup

This fixes git-for-windows/git#2388

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
Copy link
Member Author

dscho commented Nov 5, 2019

Sadly, I have not heard back from the reporters, but no less than the MSYS2 maintainer themselves helped me verify this.

@dscho dscho merged commit d57b587 into git-for-windows:master Nov 5, 2019
@dscho dscho deleted the fix-cygwin-symlinks-in-non-US-locales branch November 5, 2019 22:52
dscho added a commit that referenced this pull request Nov 5, 2019
The `/proc/{stdin,stdout,stderr}` pseudo-symlinks
[are now installed properly even with non-US
locales](#265).

Signed-off-by: Johannes Schindelin <[email protected]>
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

Successfully merging this pull request may close these issues.

[2.24.0] bash: Symlinks generated in /dev/ is broken in Japanese env
1 participant