-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
library(lattice)
## works as expected
xyplot(1~1, key = list(text = list(c("Maenner"))))
## works as expected
xyplot(1~1, key = list(text = list(c("Maenner"))), xlab =
"M\344nner")
## gives an error
xyplot(1~1, key = list(text = list(c("M\344nner"))))
Is this a bug?
TIA,
Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFISPo6Usbvfbd00+ERArJFAJsEvWq2Cai7chuOADadZHT2pnRJOgCfWLdx
3Hs3PnCzd6nuTqt6JwCl+VM=RVUk
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernd Weiss schrieb:
| library(lattice)
|
| ## works as expected
| xyplot(1~1, key = list(text = list(c("Maenner"))))
|
| ## works as expected
| xyplot(1~1, key = list(text = list(c("Maenner"))), xlab =
"M\344nner")
|
| ## gives an error
| xyplot(1~1, key = list(text = list(c("M\344nner"))))
|
| Is this a bug?
|
| TIA,
|
| Bernd
|
Sorry, I forgot to mention my
| sessionInfo()
R version 2.7.0 (2008-04-22)
i386-pc-mingw32
locale:
LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] lattice_0.17-8
loaded via a namespace (and not attached):
[1] grid_2.7.0 tools_2.7.0
Bernd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFISQbkUsbvfbd00+ERAk/JAJ4nFVRTJFZe2XalbYDUgyz4YGw6LQCeIcAe
8dQeN5+Fwr+DThwjBxH72xA=MZr3
-----END PGP SIGNATURE-----
Bernd Weiss <bernd.weiss <at> uni-koeln.de> writes:> library(lattice) > ## gives an error > xyplot(1~1, key = list(text = list(c("M\344nner")))) > > Is this a bug?You forgot to mention your version, assuming 2.7.0 unpatched. Corrected by Brian Ripley in developer version (and probably also in patched) http://finzi.psych.upenn.edu/R/Rhelp02a/archive/129251.html Dieter
Well, you failed to give the 'at a minimum information' asked for in the
posting guide, and \344 is locale-specific. I see 'MingW32' below, so
will guess this is German-language Windows. We don't know what the error
was, either.
It works correctly for me in CP1252 with R-patched, and gives an error in
2.7.0 (and works in 2.6.2). I think it was fixed as side effect of
o Rare string width calculations in package grid were not
interpreting the string encoding correctly.
although it is not the same problem that NEWS item refers to.
My error message in 2.7.0 was
Error in grid.Call.graphics("L_setviewport", pvp, TRUE) :
invalid input 'M?nner' in 'utf8towcs'
which is what makes me think this was to do with sizing the viewport.
So please update to R-patched and try again.
On Fri, 6 Jun 2008, Bernd Weiss wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> library(lattice)
>
> ## works as expected
> xyplot(1~1, key = list(text = list(c("Maenner"))))
>
> ## works as expected
> xyplot(1~1, key = list(text = list(c("Maenner"))), xlab =
"M\344nner")
>
> ## gives an error
> xyplot(1~1, key = list(text = list(c("M\344nner"))))
>
> Is this a bug?
>
> TIA,
>
> Bernd
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFISPo6Usbvfbd00+ERArJFAJsEvWq2Cai7chuOADadZHT2pnRJOgCfWLdx
> 3Hs3PnCzd6nuTqt6JwCl+VM> =RVUk
> -----END PGP SIGNATURE-----
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
Possibly Parallel Threads
- Samba 3 and german umlaute in filenames/ can not delete or rename files or dirs
- Umlaute and Sharing with both SAMBA and Helios Ethershare.
- RMySQL and german umlaute
- accessing Windows shares with smbount garbles german Umlaute
- Case preservation and German Umlaute with Samba 2.0.5a and AutoCAD14