unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Same non-ASCII characters not 'equal'
@ 2006-08-13 11:44 Sebastian Tennant
  2006-08-15  1:20 ` James Cloos
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Tennant @ 2006-08-13 11:44 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <mailman.5138.1155469477.9609.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-08-21 13:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-13 11:44 Same non-ASCII characters not 'equal' Sebastian Tennant
2006-08-15  1:20 ` James Cloos
2006-08-17  7:23   ` Sebastian Tennant
2006-08-17 16:49     ` James Cloos
2006-08-21 12:25       ` Sebastian Tennant
2006-08-21 13:15         ` James Cloos
     [not found] <mailman.5138.1155469477.9609.help-gnu-emacs@gnu.org>
2006-08-13 16:56 ` Pascal Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).