]> code.delx.au - gnu-emacs/commitdiff
(gud-jdb-marker-filter): Add period as optional thousands separator; fixes
authorNick Roberts <nickrob@snap.net.nz>
Sun, 8 Feb 2004 15:30:42 +0000 (15:30 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 8 Feb 2004 15:30:42 +0000 (15:30 +0000)
<class>:<line-number> regexp for non-english locales.

lisp/progmodes/gud.el

index f63998270dcd164bcc7b9ad70e99f7e17ebbcdbf..de68d01247034c9ccd5228c80b1dd62e4a687f8a 100644 (file)
@@ -1967,14 +1967,14 @@ nil)
         ;; FIXME: Java ID's are UNICODE strings, this matches ASCII
         ;; ID's only.
          ;;
-         ;; The "," in the last square-bracket is necessary because of
-         ;; Sun's total disrespect for backwards compatibility in
+         ;; The ".," in the last square-bracket are necessary because
+         ;; of Sun's total disrespect for backwards compatibility in
          ;; reported line numbers from jdb - starting in 1.4.0 they
-         ;; introduced a comma at the thousands position (how
-         ;; ingenious!)
+         ;; print line numbers using LOCALE, inserting a comma or a
+         ;; period at the thousands positions (how ingenious!).
 
         "\\(\[[0-9]+\] \\)*\\([a-zA-Z0-9.$_]+\\)\\.[a-zA-Z0-9$_<>(),]+ \
-\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9,]+\\)"
+\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9.,]+\\)"
         gud-marker-acc)
 
       ;; A good marker is one that:
@@ -2001,7 +2001,7 @@ nil)
                          (string-to-int
                           (let
                                ((numstr (match-string 4 gud-marker-acc)))
-                             (if (string-match "," numstr)
+                             (if (string-match "[.,]" numstr)
                                  (replace-match "" nil nil numstr)
                                numstr)))))
            (message "Could not find source file.")))