# HG changeset patch # User Nick Roberts # Date 1076254242 0 # Node ID d19a78b5f1e5d9b5b46fe085e4e924484f7e991a # Parent bed59f02c3069e550d4da85d49f4f4b0798bc903 (gud-jdb-marker-filter): Add period as optional thousands separator; fixes : regexp for non-english locales. diff -r bed59f02c306 -r d19a78b5f1e5 lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Sun Feb 08 15:29:09 2004 +0000 +++ b/lisp/progmodes/gud.el Sun Feb 08 15:30:42 2004 +0000 @@ -1967,14 +1967,14 @@ ;; 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 @@ (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.")))