]> git.eshelyaron.com Git - emacs.git/commitdiff
Recognize codepage 65001 as a valid encoding
authorEli Zaretskii <eliz@gnu.org>
Tue, 21 Aug 2018 16:35:31 +0000 (19:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 21 Aug 2018 16:35:31 +0000 (19:35 +0300)
* lisp/international/mule-conf.el (cp65001): Define it as an
alias for UTF-8.

lisp/international/mule-conf.el

index ea687f0ae5e2f07bf123be9f4b2cad5b7e9ea786..2af10ac7fe6c5796c7f585c35dc6e1c1fe6e68e1 100644 (file)
@@ -1305,6 +1305,11 @@ is treated as a character."
   :bom '(utf-8-with-signature . utf-8))
 
 (define-coding-system-alias 'mule-utf-8 'utf-8)
+;; See this page:
+;; https://docs.microsoft.com/en-us/windows/desktop/intl/code-page-identifiers
+;; Starting with Windows 10, people are trying to set their systems to
+;; use UTF-8 , so we had better recognized this alias:
+(define-coding-system-alias 'cp65001 'utf-8)
 
 (define-coding-system 'utf-8-emacs
   "Support for all Emacs characters (including non-Unicode characters)."