Opened 6 years ago
Last modified 5 years ago
#3726 new defect
special characters in psmap scalebar unit
Reported by: | 1266 | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Default | Version: | svn-releasebranch76 |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
special characters are not correctly displayed for psmap module scalebar. For example: scalebar s
units kilometers ...
does not display special characters of kilom[è]tres in french.
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Replying to 1266:
special characters are not correctly displayed for psmap module scalebar. For example: scalebar s
units kilometers ...
does not display special characters of kilom[è]tres in french.
Just guessing here, but could it be that the translated strings (po files) are in UTF-8 while ps.map expects all strings to be iso-8859-1 ? In do_scalebar.c there is:
193 else if(sb.units == SB_UNITS_KM) 194 strcpy(num, _("kilometers"));
so kilometers is translated and that's why you automatically get the non-ascii characters, but in a different encoding than the one expected.
comment:3 by , 5 years ago
Milestone: | → 7.8.3 |
---|
To reproduce:
test.psmap
ps.map in=test.psmap out=test.ps
or load the instructions file in G7:g.gui.psmap and see the preview.