Nicolai Tufar wrote:
> > -----Original Message-----
> > From: Peter Eisentraut [mailto:peter_e@gmx.net]
> >
> > Nicolai Tufar wrote:
> > > Greetings,
> > >
> > > Attached is a simple one-liner for src/tools/make_ctags.
> > > If tags are sorted in locale other than C, vim complains:
> > >
> > > E432: Tags file not sorted: tags
> > >
> > > Solution is to set LANG variable to C before calling sort.
> >
> > That should be LC_ALL.
>
> Sounds fair. Both could be done. It worked for me just with LANG.
> Should I submit a new patch?
Patch applied to do both. Thanks.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Index: src/tools/make_ctags
===================================================================
RCS file: /cvsroot/pgsql-server/src/tools/make_ctags,v
retrieving revision 1.7
diff -c -c -r1.7 make_ctags
*** src/tools/make_ctags 18 Jan 2003 06:06:51 -0000 1.7
--- src/tools/make_ctags 1 Feb 2004 23:10:42 -0000
***************
*** 10,15 ****
--- 10,17 ----
find `pwd`/ \( -name _deadcode -a -prune \) -o \
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
+ LANG=C
+ LC_ALL=C
sort tags >/tmp/$$ && mv /tmp/$$ tags
find . -name 'CVS' -prune -o -type d -print |while read DIR