[GRASS-dev] [GRASS GIS] #544: v.info lacks -g switch
GRASS GIS
trac at osgeo.org
Wed Apr 1 08:36:31 EDT 2009
#544: v.info lacks -g switch
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Keywords: | Platform: All
Cpu: All |
---------------------+------------------------------------------------------
Problem: the absence of the -g flag breaks some scripts which use v.info
in a non-English locale. The -t flag is not sufficient. Details:
http://lists.osgeo.org/pipermail/grass-user/2009-April/049690.html
On Wed, Apr 1, 2009 at 1:52 PM, Glynn Clements wrote:
> The problem is that v.info doesn't have an option to produce
> machine-readable output. The -t switch doesn't cover all of the
> information which v.info can output.
>
> FWIW, v.report has:
{{{
COLNAMES="`v.info -c map=$MAP layer=$LAYER | grep -v '^Displaying column
type' | ...
}}}
> But the 'Displaying column type' message is localised.
>
> v.report uses LC_ALL=C, which solves the above issue but is a bug in
> and of itself.
>
> The comment says:
{{{
# setting environment, so that sort works properly in all languages
LC_ALL=C # according to 'man sort'
}}}
> If it's just for sorting, it should be setting LC_CTYPE (but LC_ALL
> has to be unset, which means that the other LC_* variables have to be
> set to $LC_ALL first).
>
> But every occurence of "sort" in that script uses -n, which shouldn't
> be affected by locale.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/544>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list