1
0
Fork 0
flightgear/scripts/atis/find_nonUTF8.pl
ThorstenB 3bf09215b0 Update ATIS voice generation scripts
Split voice samples into two separate files (airport and phraseology).
Compress voice samples.
2012-10-13 15:45:15 +02:00

21 lines
393 B
Perl
Executable file

#! /usr/bin/perl
my($content, $length);
open(FILE, "< airports.vlist") || die "Unable to open file small. <$!>\n";
while( chomp($content = <FILE>) ) {
$length = length($content);
for( $i = 0; $i < $length; $i++ ) {
if( ord(substr($content, $i, 1)) > 127 )
{
print "$content\n";
last;
}
}
}
close(FILE);
exit 0