diff lisp/international/quail.el @ 22984:26d07a757c55

(quail-start-translation): If enable-multibyte-characters is nil, convert multibyte character to unibyte. (quail-start-conversion): Likewise.
author Kenichi Handa <handa@m17n.org>
date Mon, 10 Aug 1998 06:29:02 +0000
parents 72582ab5369d
children ddc2fa7883d6
line wrap: on
line diff
--- a/lisp/international/quail.el	Mon Aug 10 06:29:02 1998 +0000
+++ b/lisp/international/quail.el	Mon Aug 10 06:29:02 1998 +0000
@@ -948,10 +948,11 @@
 	(quail-delete-region)
 	(if (and quail-current-str (> (length quail-current-str) 0))
 	    (setq generated-events
-		  (if (stringp quail-current-str)
-		      (append (string-to-list quail-current-str)
-			      generated-events)
-		    (cons quail-current-str generated-events))))
+		  (append (string-to-list
+			   (if enable-multibyte-characters
+			       quail-current-str
+			     (string-make-unibyte quail-current-str)))
+			  generated-events)))
 	(if (and input-method-exit-on-first-char generated-events)
 	    (list (car generated-events))
 	  generated-events))
@@ -1023,7 +1024,10 @@
 			   (overlay-end quail-conv-overlay)))
 	(if (> (length quail-conversion-str) 0)
 	    (setq generated-events
-		  (append (string-to-list quail-conversion-str)
+		  (append (string-to-list
+			   (if enable-multibyte-characters
+			       quail-conversion-str
+			     (string-make-unibyte quail-conversion-str)))
 			  generated-events)))
 	(if (and input-method-exit-on-first-char generated-events)
 	    (list (car generated-events))