aboutsummaryrefslogtreecommitdiffstats
path: root/doc/perlnoutf.pl
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2009-06-21 12:47:48 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2009-06-21 12:47:48 +0000
commitc47eeae22b4edcebb6b58a5ef1a67b139473d203 (patch)
tree779fd228d4c61751c9f15f4c07cbe25078beff98 /doc/perlnoutf.pl
parent05a3dca2bc492be7443afc52fbff2bb9c182e705 (diff)
Move the generated documentation (man pages, AUTHORS-SHORT-FORMAT, and
AUTHORS-SHORT) into doc/. This cleans up the top-level Makefile.am (no more need to have rules for each man page in both files) and solves the parallel-build problem described in: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3494 svn path=/trunk/; revision=28784
Diffstat (limited to 'doc/perlnoutf.pl')
-rwxr-xr-xdoc/perlnoutf.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/perlnoutf.pl b/doc/perlnoutf.pl
new file mode 100755
index 0000000000..9f5580fa8c
--- /dev/null
+++ b/doc/perlnoutf.pl
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+
+# $Id$
+
+# Call another Perl script, passing our caller's arguments, with
+# environment variables unset so perl doesn't interpret bytes as UTF-8
+# characters.
+
+use strict;
+
+delete $ENV{LANG};
+delete $ENV{LANGUAGE};
+delete $ENV{LC_ALL};
+delete $ENV{LC_CTYPE};
+
+system("$^X -w @ARGV");