| 1 |
#!/usr/bin/perl -w |
| 2 |
|
| 3 |
# Wrapper for making the conjugue script work under UTF-8 locale charmap |
| 4 |
# Written by Rafael Laboissiere <[email protected]> |
| 5 |
# This script is in the public domain |
| 6 |
|
| 7 |
my $encoding = (my @lines = `locale charmap`)[-1]; |
| 8 |
chomp $encoding; |
| 9 |
my $script = "/usr/bin/conjugue-$encoding"; |
| 10 |
if (-f $script) { |
| 11 |
system ($script, @ARGV); |
| 12 |
} else { |
| 13 |
die "Current locale charmap `$encoding' is unknown to conjugue.\n" |
| 14 |
. "Accepted charmaps are UTF-8 and ISO-8859-1.\n"; |
| 15 |
} |
| 16 |
|