The ASF dissector should be a new-style dissector, so its caller knows
[obnox/wireshark/wip.git] / make-version.pl
index 827115e4b7dced16e0fd9b5575b101babba07175..48eca2debc43446282579fa62ce1edd509b3cbdc 100755 (executable)
@@ -81,6 +81,7 @@ my %version_pref = (
        );
 my $srcdir = ".";
 
+$ENV{LANG} = "C";  # Ensure we run with correct locale
 
 # Run "svn info".  Parse out the most recent modification time and the
 # revision number.
@@ -257,7 +258,8 @@ sub print_svn_version
                        "/* #define SVNPATH \"\" */\n";
        }
        if (open(OLDVER, "<$version_file")) {
-               if (<OLDVER> eq $svn_version) {
+               my $old_svn_version = <OLDVER> . <OLDVER>;
+               if ($old_svn_version eq $svn_version) {
                        $needs_update = 0;
                }
                close OLDVER;