patch for a locale-specific bug in regression tests (REL9_1_STABLE)

From: Tomas Vondra <tv(at)fuzzy(dot)cz>
To: pgsql-hackers(at)postgresql(dot)org
Subject: patch for a locale-specific bug in regression tests (REL9_1_STABLE)
Date: 2012-03-06 18:59:39
Message-ID: 4F565E9B.2090008@fuzzy.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I've noticed a locale-specific bug in regression tests, I discovered
thanks to the new "magpie" buildfarm member (testing "cs_CZ" locale).
The problem is in "foreign_data" where the output is sorted by a column,
and "cs_CZ" behaves differently from "C" and "en_US".

More precisely, in "C" it's true that ('s4' < 'sc') but that's not true
in cs_CZ (and supposedly some other locales).

I've fixed this by replacing 'sc' with 't0' which seems to fix the
ordering (and should work with other locales too). See the patch attached.

kind regards
Tomas

Attachment Content-Type Size
regression-foreign-data.diff text/plain 5.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2012-03-06 19:09:23 Re: Checksums, state of play
Previous Message Bruce Momjian 2012-03-06 18:52:31 Re: Checksums, state of play