[GRASS-dev] [GRASS GIS] #3353: r.support metadata: accents not supported in some fields

GRASS GIS trac at osgeo.org
Thu Jun 1 02:52:34 PDT 2017


#3353: r.support metadata: accents not supported in some fields
-------------------------------------------------+-------------------------
 Reporter:  mlennert                             |      Owner:  grass-dev@…
     Type:  defect                               |     Status:  new
 Priority:  normal                               |  Milestone:  7.4.0
Component:  LibGIS                               |    Version:  svn-trunk
 Keywords:  support files r.support translation  |        CPU:  Unspecified
 Platform:  Unspecified                          |
-------------------------------------------------+-------------------------
 {{{
 g.copy rast=elevation,myelev
 r.support myelev source1="Tést of aççented chàracters" description="Tést
 of aççented chàracters" history="Tést of aççented chàracters" title="Tést
 of aççented chàracters"
 r.info -e myelev

 map=myelev
 mapset=user1
 location=nc_spm_08
 database=/data/GRASS/DATA7
 date="Tue Nov  7 01:09:51 2006"
 creator="helena"
 title="Tést of aççented chàracters"
 timestamp="none"
 units="none"
 vdatum="none"
 source1="Tst of aented chracters"
 source2=""
 description="Tst of aented chracters"
 comments="r.proj input="ned03arcsec" location="northcarolina_latlong"
 mapset="\helena" output="elev_ned10m" method="cubic" resolution=10Tést of
 aççented chàracters"
 }}}

 i.e. accents are supported in title and comments, but not in source or in
 description.

 This last point, also creates an issue with the default description, which
 contains a translatable string, which in French is translated using
 accents:


 {{{
 #: ../lib/raster/history.c:235
 #, c-format
 msgid "generated by %s"
 msgstr "généré par %s"
 }}}

 Which results in

 "gnr par".

 Is there any way to allow accents in these fields ? If not, then I guess
 the default description string should not be translatable, and the info
 should at least be mentioned in the man page.

 Here are my locale settings:


 {{{
 > locale
 LANG=fr_BE
 LANGUAGE=fr_BE
 LC_CTYPE=fr_BE.UTF-8
 LC_NUMERIC=C
 LC_TIME=fr_BE.UTF-8
 LC_COLLATE=fr_BE.UTF-8
 LC_MONETARY=fr_BE.UTF-8
 LC_MESSAGES=fr_BE.UTF-8
 LC_PAPER=fr_BE.UTF-8
 LC_NAME=fr_BE.UTF-8
 LC_ADDRESS=fr_BE.UTF-8
 LC_TELEPHONE=fr_BE.UTF-8
 LC_MEASUREMENT=fr_BE.UTF-8
 LC_IDENTIFICATION=fr_BE.UTF-8
 LC_ALL=
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3353>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list