INN commit: trunk (4 files)

INN Commit Russ_Allbery at isc.org
Wed Feb 18 20:08:11 UTC 2009


    Date: Wednesday, February 18, 2009 @ 12:08:11
  Author: iulius
Revision: 8320

Export a "C" value for LC_CTYPE so as to treat all input
as a stream of bytes in our scripts.
Problems are for instance triggered off by docheckgroups on
UTF-8 systems when it receives a ISO-8859-15 checkgroups
control message:  sed regexps do not match what they should.

Modified:
  trunk/perl/INN/Config.pm.in
  trunk/scripts/innshellvars.in
  trunk/scripts/innshellvars.pl.in
  trunk/scripts/innshellvars.tcl.in

-----------------------------+
 perl/INN/Config.pm.in       |    4 ++++
 scripts/innshellvars.in     |    4 +++-
 scripts/innshellvars.pl.in  |    2 ++
 scripts/innshellvars.tcl.in |    2 ++
 4 files changed, 11 insertions(+), 1 deletion(-)

Modified: perl/INN/Config.pm.in
===================================================================
--- perl/INN/Config.pm.in	2009-02-18 19:56:00 UTC (rev 8319)
+++ perl/INN/Config.pm.in	2009-02-18 20:08:11 UTC (rev 8320)
@@ -174,6 +174,10 @@
 $ENV{'TMPDIR'} = $pathtmp;
 
 
+##  Set up the locale.
+$ENV{'LC_CTYPE'} = "C";
+
+
 ##  Set up umask.
 umask @NEWSUMASK@;
 

Modified: scripts/innshellvars.in
===================================================================
--- scripts/innshellvars.in	2009-02-18 19:56:00 UTC (rev 8319)
+++ scripts/innshellvars.in	2009-02-18 20:08:11 UTC (rev 8320)
@@ -7,6 +7,8 @@
 ##  innshellvars.tcl and the INN::Config Perl module (as well as the
 ##  old innshellvars.pl script).
 
+LC_CTYPE=C; export LC_CTYPE
+
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 eval `@bindir@/innconfval -s`
@@ -106,7 +108,7 @@
 
 DO_DBZ_TAGGED_HASH=@DO_DBZ_TAGGED_HASH@
 
-TMPDIR=${PATHTMP}; export TMPDIR;
+TMPDIR=${PATHTMP}; export TMPDIR
 
 SPOOLTEMP=${PATHTMP}
 

Modified: scripts/innshellvars.pl.in
===================================================================
--- scripts/innshellvars.pl.in	2009-02-18 19:56:00 UTC (rev 8319)
+++ scripts/innshellvars.pl.in	2009-02-18 20:08:11 UTC (rev 8320)
@@ -13,6 +13,8 @@
 
 package inn ;
 
+$ENV{'LC_CTYPE'} = "C";
+
 $prefix = '@prefix@';
 $exec_prefix = "@exec_prefix@";
 eval `@bindir@/innconfval -p`;

Modified: scripts/innshellvars.tcl.in
===================================================================
--- scripts/innshellvars.tcl.in	2009-02-18 19:56:00 UTC (rev 8319)
+++ scripts/innshellvars.tcl.in	2009-02-18 20:08:11 UTC (rev 8320)
@@ -8,6 +8,8 @@
 # Description:  Set up any and all variables that an INN tcl script
 #               might need.  Also sets umask.
 
+set env(LC_CTYPE) "C"
+
 set prefix "@prefix@"
 set exec_prefix "@exec_prefix@"
 eval `@bindir@/innconfval -t`




More information about the inn-committers mailing list