Re: C locale sort in src/tools/make_ctags

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: C locale sort in src/tools/make_ctags
Дата
Msg-id 200402012311.i11NBBB16475@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: C locale sort in src/tools/make_ctags  ("Nicolai Tufar" <ntufar@pisem.net>)
Ответы Re: C locale sort in src/tools/make_ctags  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Claudio Natoli
Дата:
Сообщение: Re: pg_generate_sequence and info_schema patch (Was: SE
Следующее
От: Neil Conway
Дата:
Сообщение: Re: reading uninitialized buffer