Commit 08e77a49 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(command-line): Require whitespace delimiter when

searching locale-translation-file-name.
parent cbb41490
......@@ -509,7 +509,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(file-exists-p locale-translation-file-name)
(with-temp-buffer
(insert-file-contents locale-translation-file-name)
(if (re-search-forward (concat "^" ctype "[ \t]*") nil t)
(if (re-search-forward (concat "^" ctype "[ \t]+") nil t)
(setq ctype (buffer-substring (point)
(progn (end-of-line) (point)))))))
;; Now see if the locale specifies an ISO 8859 character set.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment