X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fformat-guesser.c;h=26c917b824ce77733409ecb27885fd7d7d0e55eb;hb=4c4f035bfad520dc54f0d5a9e30e36d4fb009efc;hp=78af8dfa269ed3ee70ff35782799cdddcc973d93;hpb=3e3d825afe59ad43699664a74ca04e2e1b836786;p=pspp-builds.git diff --git a/src/data/format-guesser.c b/src/data/format-guesser.c index 78af8dfa..26c917b8 100644 --- a/src/data/format-guesser.c +++ b/src/data/format-guesser.c @@ -135,8 +135,13 @@ static struct date_syntax syntax[] = /* www */ { FMT_WKDAY, 1, {DT_WEEKDAY} }, - /* mmm */ - { FMT_MONTH, 1, {DT_MONTH} }, + /* mmm + + We require a spelled-out English month so that + single-character Roman numerals like "i" and "x" don't get + detected as months. The latter is particularly common in + the password field of /etc/passwd-like files. */ + { FMT_MONTH, 1, {DT_ENGLISH_MONTH} }, }; /* Number of recognized date syntax formats. */