mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 20:40:24 +08:00
782aac590a
When running Cygwin's Bash in the Windows Terminal (see https://docs.microsoft.com/en-us/windows/terminal/ for details), Cygwin is receiving keyboard input in the form of UTF-16 characters. UTF-16 has that awkward challenge that it cannot map the full Unicode range, and to make up for it, there are the ranges U+D800-U+DBFF and U+DC00-U+DFFF which are illegal except when they come in a pair encoding for Unicode characters beyond U+FFFF. Cygwin does not handle such surrogate pairs correctly at the moment, as can be seen e.g. when running Cygwin's Bash in the Windows Terminal and then inserting an emoji (e.g. via Windows + <dot>, which opens an emoji picker on recent Windows versions): Instead of showing an emoji, this shows the infamous question mark in a black triangle, i.e. the invalid Unicode character. Let's special-case surrogate pairs in this scenario. This fixes https://github.com/git-for-windows/git/issues/3281 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
25 lines
1.0 KiB
Groff
25 lines
1.0 KiB
Groff
Bug Fixes
|
|
---------
|
|
|
|
- Fix issue that new pipe code doesn't handle reading zero byte reads
|
|
emitted by some non-Cygwin apps.
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249844.html
|
|
|
|
- Make sure that "X:" paths are not handled as absolute DOS paths in
|
|
fstatat and other ...at calls. "X:/" still is handled as absolute
|
|
path.
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249837.html
|
|
|
|
- Fix showing DLL version info from native Windows tools.
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249867.html
|
|
|
|
- Fix long-standing problem that new files don't get created with the
|
|
FILE_ATTRIBUTE_ARCHIVE DOS attribute set.
|
|
Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249909.html
|
|
|
|
- Handle Unicode surrogate pairs in console. Cygwin console does not
|
|
handle surrogate pairs correctly at the moment. Fix issue that
|
|
running bash in Windows Terminal and inserting an emoji does not
|
|
work as expected.
|
|
Addresses: https://github.com/git-for-windows/git/issues/3281
|