annotate bin/dfi @ 413:fda660f86df3

Don't set lc_messages to utf-8. Just use plain C. Kinda fixes gnu tools in openbsd.
author Edho Arief <edho@myconan.net>
date Fri, 23 Nov 2012 10:39:38 -0500
parents 006c273399fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env python
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 import os
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 import sys
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 rows = sys.stdin.readlines()
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 for row in rows:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 if row.find(' ', 1, 49) == -1:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 row = row[0:48] + ' ' + row[48:]
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 data = row.split(None, 5)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 print '|'.join(data)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13