Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c1c1886d
Commit
c1c1886d
authored
Feb 12, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unset language-related locale settings in any case, otherwise psql will
speak in tongues and mess up the regression test diffs.
parent
eee82d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
doc/src/sgml/regress.sgml
doc/src/sgml/regress.sgml
+8
-4
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+11
-4
No files found.
doc/src/sgml/regress.sgml
View file @
c1c1886d
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.6
1 2009/02/11 14:03:41
petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.6
2 2009/02/12 13:26:03
petere Exp $ -->
<chapter id="regress">
<title id="regress-title">Regression Tests</title>
...
...
@@ -218,11 +218,15 @@ gmake installcheck
locale-related environment variables on
the <command>make</command> command line, for example:
<programlisting>
gmake check L
C_ALL
=de_DE.utf8
gmake check L
ANG
=de_DE.utf8
</programlisting>
or analogously to use no locale:
(The regression test driver unsets <envar>LC_ALL</envar>, so it
does not work to choose the locale using that variable.) To use
no locale, either unset all locale-related environment variables
(or set them to <literal>C</literal>) or use the following
special invocation:
<programlisting>
gmake check
LC_ALL=C
gmake check
NO_LOCALE=1
</programlisting>
When running the tests against an existing installation, the
locale setup is determined by the existing installation. To
...
...
src/test/regress/pg_regress.c
View file @
c1c1886d
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.6
0 2009/02/11 14:03:42
petere Exp $
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.6
1 2009/02/12 13:26:03
petere Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -694,18 +694,25 @@ initialize_environment(void)
unsetenv
(
"LC_COLLATE"
);
unsetenv
(
"LC_CTYPE"
);
unsetenv
(
"LC_MONETARY"
);
unsetenv
(
"LC_MESSAGES"
);
unsetenv
(
"LC_NUMERIC"
);
unsetenv
(
"LC_TIME"
);
unsetenv
(
"LC_ALL"
);
unsetenv
(
"LANG"
);
unsetenv
(
"LANGUAGE"
);
/* On Windows the default locale cannot be English, so force it */
#if defined(WIN32) || defined(__CYGWIN__)
putenv
(
"LANG=en"
);
#endif
}
/*
* Set translation-related settings to English; otherwise psql
* will produce translated messages and produce diffs. (XXX If we
* ever support translation of pg_regress, this needs to be moved
* elsewhere, where psql is actually called.)
*/
unsetenv
(
"LANGUAGE"
);
unsetenv
(
"LC_ALL"
);
putenv
(
"LC_MESSAGES=C"
);
/*
* Set multibyte as requested
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment