+2007-06-17 Bruno Haible <bruno@clisp.org>
+
+ * po-mode.el (po-validate): Protect the buffer-file-name against
+ shell interpretation.
+ Reported by Laurynas Biveinis <laurynas.biveinis@gmail.com>.
+
+2007-06-17 Bruno Haible <bruno@clisp.org>
+
+ * po-mode.el (po-msgfmt-version-check): Recognize also 0.16.2-pre1.
+
2007-06-08 Bruno Haible <bruno@clisp.org>
* autopoint.in: Update year in --version output.
;;; po-mode.el -- major mode for GNU gettext PO files
-;; Copyright (C) 1995-1999, 2000-2002, 2005-2006 Free Software Foundation, Inc.
+;; Copyright (C) 1995-1999, 2000-2002, 2005-2007 Free Software Foundation, Inc.
;; Authors: François Pinard <pinard@iro.umontreal.ca>
;; Greg McGary <gkm@magilla.cichlid.com>
(function (lambda (mode-name)
(concat "*" mode-name " validation*"))))
(compile-command (concat po-msgfmt-program
- " --statistics -c -v -o " dev-null " "
- buffer-file-name)))
+ " --statistics -c -v -o " dev-null " "
+ (shell-quote-argument buffer-file-name))))
(po-msgfmt-version-check)
(compile compile-command)))
(file-error nil))
;; Make sure there's a version number in the output:
- ;; 0.11 or 0.10.36 or 0.11-pre1
+ ;; 0.11 or 0.10.36 or 0.11-pre1 or 0.16.2-pre1
(progn (goto-char (point-min))
(or (looking-at ".* \\([0-9]+\\)\\.\\([0-9]+\\)$")
(looking-at ".* \\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$")
- (looking-at ".* \\([0-9]+\\)\\.\\([0-9]+\\)[-_A-Za-z0-9]+$")))
+ (looking-at ".* \\([0-9]+\\)\\.\\([0-9]+\\)[-_A-Za-z0-9]+$")
+ (looking-at ".* \\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)[-_A-Za-z0-9]+$")))
;; Make sure the version is recent enough.
(>= (string-to-number