unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* set-language-environment
@ 2006-08-04 10:45 Peter Dyballa
  2006-08-04 11:02 ` set-language-environment David Kastrup
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Dyballa @ 2006-08-04 10:45 UTC (permalink / raw)


Hello!

Setting this value to German executes line #2170 in mule-cmds.el:

     ("de" "German" iso-8859-1)

Since almost one decade we live in the Euro zone. Iso-8859-1 is  
completely wrong, iso-8859-15 is the right choice in the 8 bit encoding.

Look, here is a map of those countries that have the € as their local  
currency: http://www.ecb.de/bc/intro/html/map.en.html. In the next  
years more will follow.

--
Greetings

   Pete

If all else fails read the instructions.
                                          - Donald Knuth

^ permalink raw reply	[flat|nested] 8+ messages in thread
* set-language-environment
@ 2003-07-05 17:20 Yoichi NAKAYAMA
  2003-07-11  2:45 ` set-language-environment Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Yoichi NAKAYAMA @ 2003-07-05 17:20 UTC (permalink / raw)


docstring of the variable current-language-environment says:
> This variable should be set only with M-x customize, which is equivalent
> to using the function `set-language-environment'.

Although (set-language-environment "jApAnEse") does set
current-language-environment to the wrong value (so the above two
are not "equivalent").  Following patch will fix it.

Index: mule-cmds.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v
retrieving revision 1.237
diff -u -r1.237 mule-cmds.el
--- mule-cmds.el	29 Jun 2003 10:36:59 -0000	1.237
+++ mule-cmds.el	5 Jul 2003 17:10:11 -0000
@@ -1707,7 +1707,9 @@
       (if (symbolp language-name)
 	  (setq language-name (symbol-name language-name)))
     (setq language-name "English"))
-  (or (assoc-ignore-case language-name language-info-alist)
+  (or (setq language-name
+	    (car-safe
+	     (assoc-ignore-case language-name language-info-alist)))
       (error "Language environment not defined: %S" language-name))
   (if current-language-environment
       (let ((func (get-language-info current-language-environment

Regards,
-- 
Yoichi Nakayama

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-04 18:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 10:45 set-language-environment Peter Dyballa
2006-08-04 11:02 ` set-language-environment David Kastrup
2006-08-04 11:05   ` set-language-environment David Kastrup
2006-08-04 11:10   ` set-language-environment Kenichi Handa
2006-08-04 12:07     ` set-language-environment Peter Dyballa
2006-08-04 18:42       ` set-language-environment Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-07-05 17:20 set-language-environment Yoichi NAKAYAMA
2003-07-11  2:45 ` set-language-environment Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).