]> granicus.if.org Git - postgresql/commit
The enclosed patch changes the behaviour of the "ordinal" ('TH') format for
authorBruce Momjian <bruce@momjian.us>
Fri, 9 Jun 2000 03:18:34 +0000 (03:18 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 9 Jun 2000 03:18:34 +0000 (03:18 +0000)
commitdbf2fd2e0fcba130e1def905464cc002992cac69
treee74d877712effdadce48b95176d039056d8eba97
parentce7746201b81ba57c0145b631013b13f00a0537a
The enclosed patch changes the behaviour of the "ordinal" ('TH') format for
to_char.  I don't know about the rest of the world, but the "standard" in
Australia is the following:

        1st, 2nd, 3rd, 4th - 9th
        10th - 19th
        21st, 22nd, 23rd, 24th - 29th (similarly for 30s - 90s)
        110th - 119th (and for all "teens")
        121st, 122nd, 123rd, 124th - 129th

I think you see the trend.  The current code works fine except that it
produces:

        111st, 112nd, 113rd, 114th - 119th
        211st, 212nd, 213rd, 214th - 219th ... and so on.

Without knowing anything about what's supported (and what isn't) in the usual
I18N libraries, should this type of behaviour be defined within the locales?

Daniel Baldoni
src/backend/utils/adt/formatting.c