[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Same non-ASCII characters not 'equal'
From: |
Sebastian Tennant |
Subject: |
Same non-ASCII characters not 'equal' |
Date: |
Sun, 13 Aug 2006 14:44:15 +0300 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Hello all,
I'm trying to write a little vocab tester but I've stumbled upon some
strange behaviour I can't figure out.
For some reason the following code does not match strings containing
special characters (i.e., non-ASCII characters input using an input
method)?
(with-temp-buffer
(set-input-method 'turkish-postfix)
(let ((dict (list '("glass" "bardak") '("house" "ev") '("girl" "kız")
'("child" "çocuk") '("little" "küçük") '("good" "iyi")
'("bad" "fena") '("horse" "at") '("this" "bu")))
(input (read-from-minibuffer "? " nil nil nil nil nil t))
match)
(dolist (each dict (and match (message "Equal")))
(when (member input each) (setq match t)))))
Take 'child' and 'çocuk' for instance. Because the (turkish-postfix)
input method is inherited in the minibuffer you have to type
'c h i 2 l d' to enter 'child' and a match is found, but when you
enter 'çocuk' by typing 'c , o c u k', no match is found. Could this
be a bug even?
sebyte
- Same non-ASCII characters not 'equal',
Sebastian Tennant <=