chiark / gitweb /
simple script to print the character set of a .po file in a way suitable for feeding...
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:14:33 +0000 (23:14 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 17 Jan 2006 23:14:33 +0000 (23:14 +0000)
po-charset [new file with mode: 0755]

diff --git a/po-charset b/po-charset
new file mode 100755 (executable)
index 0000000..8b9e724
--- /dev/null
@@ -0,0 +1,2 @@
+#! /usr/bin/perl -ln
+/^"Content-Type: .* charset=(.*)\\n"$/ and print $1