emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use the Unicode replacement character for replacing unencodable characte


From: Mattias Engdegård
Subject: Use the Unicode replacement character for replacing unencodable characters into UTF-16
Date: Tue, 18 Aug 2020 17:36:10 +0200

The attached patch makes sure that non-Unicode characters are replaced with 
U+FFFD REPLACEMENT CHARACTER instead of a space when converting to UTF-16. (The 
space is from all evidence a historical accident.)

This change is required for one possible solution of bug#42904. We can do 
without this patch, but it fixes a clear bug.

For some reason, unpaired surrogates aren't affected despite not being 
encodable in UTF-16 -- another bug, but not one addressed here.

Attachment: 0001-Use-Unicode-replacement-character-for-unencodable-UT.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]