Fix bug in ra_neon with copy-on-update: Neon thinks it knows what a
[svn.git] / build / strip-po-charset.py
blobda5b4e2e01bbe067f0dda253fa7380a3e890099b
1 #!/usr/bin/env python
3 # strip-po-charset.py
6 import sys, string
8 def strip_po_charset(inp, out):
10 out.write(string.replace(inp.read(),
11 "\"Content-Type: text/plain; charset=UTF-8\\n\"\n",""))
13 def main():
15 if len(sys.argv) != 3:
16 print "Usage: %s <input (po) file> <output (spo) file>" % sys.argv[0]
17 print
18 print "Unsupported number of arguments; 2 required."
19 sys.exit(1)
21 strip_po_charset(open(sys.argv[1],'r'), open(sys.argv[2],'w'))
23 if __name__ == '__main__':
24 main()