[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PROPOSAL: command line for LSB package program



Circa 2000-Jun-16 16:10:22 +0100 schrieb Alan Cox:

: [Erik Troan wrote:]
: > And
: >   _("description"):_(<package description>)
: 
: How do I parse them by machine then

One way could be (in /bin/sh):

  for i in \
    LANG \
    LC_CTYPE \
    LC_NUMERIC \
    LC_TIME \
    LC_COLLATE \
    LC_MONETARY \
    LC_MESSAGES \
    LC_ALL \
  ; do
    unset ${i}
  done
  LANG="C"
  export LANG
  
  <perform query>

That's admittedly a rather irritating thing to have to do, but
certainly does the job.

-- 
jim knoble | jmknoble@jmknoble.cx | http://www.jmknoble.cx/



Reply to: