changeset 8137:a0746604e843

(iso-8859-1-locale-regexp): New variable. (command-line): Use it.
author Richard M. Stallman <rms@gnu.org>
date Mon, 04 Jul 1994 23:24:46 +0000
parents 9ad3db62f0e7
children f7f20bbe4ca7
files lisp/startup.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/startup.el	Mon Jul 04 20:58:39 1994 +0000
+++ b/lisp/startup.el	Mon Jul 04 23:24:46 1994 +0000
@@ -201,6 +201,9 @@
 	       (x-popup-menu nil (cdr (cdr (car submap)))))
 	  (setq submap (cdr submap))))))
 
+(defconst iso-8859-1-locale-regexp "iso[-_]?8859[-_]1"
+  "Use ISO 8859-1 character set by default if this regexp matches LC_CTYPE.")
+
 (defun command-line ()
   (setq command-line-default-directory default-directory)
 
@@ -217,8 +220,7 @@
 	       (string= vc "simple"))
 	   (setq version-control 'never))))
 
-  (if (or (string-equal (getenv "LC_CTYPE") "iso_8859_1")
-	  (string-equal (getenv "LC_CTYPE") "iso-8859-1"))
+  (if (string-match iso-8859-1-locale-regexp (getenv "LC_CTYPE"))
       (progn 
 	(standard-display-european t)
 	(require 'iso-syntax)))