On Wed, Jun 27, 2007 at 04:20:39PM +0100, Prof Brian Ripley wrote: > But you can't really avoid it if you want to test non-ASCII > features: for example, you cannot test Latin-1 graphics in a C locale. > > It was intended that the postscript device opened for testing graphics was > opened with encoding="ISOLatin1". That should certainly have helped, at > least in a UTF-8 locale, but unfortunately there were a couple of typos in > tests/Examples/Makefile. Fixing that file makes 'make check' work in > cs_CZ.utf8 at least on my machine. > > It still remains that (for examples) you cannot successfully run make > check in a MBCS locale without iconv, nor will zh_CN.gbk nor zh_TW.big5 > work. I've added a note to R-admin to say that you may need to try a > suitable locale.
I applied the following patch obtained by comparing R-devel_2007-06-26 and R-devel_2007-06-27 --- D070626/R-devel/tests/Examples/Makefile.in 2007-05-10 17:50:54.000000000 +0200 +++ D070627/R-devel/tests/Examples/Makefile.in 2007-06-27 17:50:09.000000000 +0200 @@ -82,8 +82,8 @@ @if test -f $@; then mv $@ [EMAIL PROTECTED]; fi @echo $(ECHO_N) "running code in '$<' ...$(ECHO_C)" @echo 'tools:::.convert_examples("graphics-Ex.R", "graphics-Ex.R-locale", "latin1")' | $(R) --slave > /dev/null 2>&1 || exit 1 - @sed -e 's/grDevices::postscript("graphics-Ex.ps")/grDevices::postscript("graphics-Ex.ps",encoding="ISOlatin1")/' graphics-Ex.R-locale \ - | $(R) < graphics-Ex.R-locale > $@ 2>&1 || (mv $@ [EMAIL PROTECTED] && exit 1) + @sed -e 's/grDevices::postscript("graphics-Ex.ps")/grDevices::postscript("graphics-Ex.ps",encoding="ISOLatin1")/' graphics-Ex.R-locale \ + | $(R) > $@ 2>&1 || (mv $@ [EMAIL PROTECTED] && exit 1) @rm graphics-Ex.R-locale @echo "$(ECHO_T) OK" @if test -f [EMAIL PROTECTED]; then \ to my copy of R-2.5.1. Then, make check works with no error in cs_CZ.UTF-8 locale also on my machine. Thank you for the correction. Petr. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel