Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78c84ad

Browse files
committed
Because plpgsql's scanner uses %option case-insensitive, flex's results could
theoretically vary depending on what the compile-time locale setting is.Hence, force it to see LC_CTYPE=C to ensure consistent build results.(It's likely that this makes no difference in practice, since ourspecification for "identifier" surely includes both ends of any possibleuppercase/lowercase pair anyway. But it should silence warnings aboutambiguous character classes that are reported by some buildfarm members.)
1 parent816ff27 commit78c84ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/pl/plpgsql/src/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for the plpgsql shared object
44
#
5-
# $PostgreSQL: pgsql/src/pl/plpgsql/src/Makefile,v 1.30 2007/02/09 15:56:00 petere Exp $
5+
# $PostgreSQL: pgsql/src/pl/plpgsql/src/Makefile,v 1.31 2007/07/15 22:18:24 tgl Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -67,9 +67,13 @@ else
6767
@$(missing) bison $< $@
6868
endif
6969

70+
# Because we use %option case-insensitive, flex's results could vary
71+
# depending on what the compile-time locale setting is. Hence, force
72+
# it to see LC_CTYPE=C to ensure consistent build results.
73+
7074
$(srcdir)/pl_scan.c: scan.l
7175
ifdefFLEX
72-
$(FLEX) $(FLEXFLAGS) -o'$@' $<
76+
LC_CTYPE=C$(FLEX) $(FLEXFLAGS) -o'$@' $<
7377
else
7478
@$(missing) flex $< $@
7579
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp