Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / test / locale / sort-test.py
blob1dafcedde50769637ef16e38b7a390289ee8fe7e
1 #! /usr/bin/env python
3 import sys, string, locale
4 locale.setlocale(locale.LC_ALL, "")
6 if len(sys.argv) <> 2:
7 sys.stderr.write("Usage: sort.py filename\n")
8 sys.exit(1)
10 infile = open(sys.argv[1], 'r')
11 list = infile.readlines()
12 infile.close()
14 for i in range(0, len(list)):
15 list[i] = list[i][:-1] # chop!
17 list.sort(locale.strcoll)
18 print string.join(list, '\n')