[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 6e08019: Recognize codepage 65001 as a valid enco
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 6e08019: Recognize codepage 65001 as a valid encoding |
Date: |
Tue, 21 Aug 2018 12:36:25 -0400 (EDT) |
branch: emacs-26
commit 6e08019af72932ee9decdfa14b6d62b8147839c4
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Recognize codepage 65001 as a valid encoding
* lisp/international/mule-conf.el (cp65001): Define it as an
alias for UTF-8.
---
lisp/international/mule-conf.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index ea687f0..2af10ac 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -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)."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 6e08019: Recognize codepage 65001 as a valid encoding,
Eli Zaretskii <=