emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/term/mac-win.el


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] Changes to emacs/lisp/term/mac-win.el
Date: Sat, 06 May 2006 06:50:10 +0000

Index: emacs/lisp/term/mac-win.el
diff -u emacs/lisp/term/mac-win.el:1.67 emacs/lisp/term/mac-win.el:1.68
--- emacs/lisp/term/mac-win.el:1.67     Fri May  5 06:43:12 2006
+++ emacs/lisp/term/mac-win.el  Sat May  6 06:50:10 2006
@@ -1265,8 +1265,10 @@
          ;; reverse solidus?
          (if (string-match "[\xa0\xfd-\xff]" str)
              (setq str nil)
-           (subst-char-in-string ?\x5c ?\¥ str t)
-           (subst-char-in-string ?\x80 ?\\ str t))))
+           ;; ASCII-only?
+           (unless (string-match "\\`[[:ascii:]]*\\'" str)
+             (subst-char-in-string ?\x5c ?\¥ str t)
+             (subst-char-in-string ?\x80 ?\\ str t)))))
     (or str
        (decode-coding-string data
                              (if (eq (byteorder) ?B) 'utf-16be 'utf-16le)))))




reply via email to

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