Opened 7 years ago

Last modified 5 years ago

#3353 new defect

r.support metadata: accents not supported in some fields

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.4.5
Component: LibGIS Version: svn-trunk
Keywords: support files r.support translation Cc:
CPU: Unspecified Platform: Unspecified

Description

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=

Change History (5)

comment:1 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:3 by neteler, 5 years ago

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:4 by martinl, 5 years ago

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:5 by neteler, 5 years ago

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.