Package: r-base-core
Version: 3.0.1-3~squeezecran3.0
Severity: normal

The failure to load the datasets, as well as the wrong behaviour of sub depends 
on 
the locale settings. I get correct behaviour when exporting LANG=de_DE.UTF-8 
before 
starting R. R 2.11.1 from squeeze is not affected. However, this happens with my
backports of R 3.0.1 to squeeze as well as in a sid chroot.

<<start transcript>>

(sid)ranke@qnap:~$ echo $LANG

(sid)ranke@qnap:~$ R

R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: arm-unknown-linux-gnueabi (32-bit)

.... some content removed ...

Type 'q()' to quit R.

> data(Loblolly)
Warning message:
In data(Loblolly) : data set 'Loblolly' not found
> quit()
Save workspace image? [y/n/c]: n
(sid)ranke@qnap:~$ export LANG=de_DE.UTF-8
(sid)ranke@qnap:~$ R

R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: arm-unknown-linux-gnueabi (32-bit)

.... some content removed ...

Tippen Sie 'q()', um R zu verlassen.

> data(Loblolly)
> 

<<end transcript>>

I believe the behaviour of sub() (it behaves incorrectly with an empty $LANG)
should not depend on the locale setting. 

For anyone interested, this may or may not be related to R bug

        https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14408

and its duplicate

        https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14984

for which a workaround has been introduced in R 2.14.2. Citing the NEWS file

        There is a partial workaround for errors in the TRE regular-expressions
        engine with named classes and repeat counts of at least 2 in a MBCS
        locale (PR#14408): these are avoided when TRE is in 8-bit mode (e.g. for
        useBytes = TRUE and when all the data are ASCII). 

There is a hint in the R bugzilla that the problem causing this bug (#695411) 
can be avoided when the
original TRE sources are used instead of the version shipped with R:

        https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15087 (comment 1)

(all?) changes introduced in the R version of TRE are documented here:

        https://svn.r-project.org/R/trunk/src/extra/tre/R_changes

Some more information can be found in the log files

        svn log -v https://svn.r-project.org/R/trunk/src/extra/tre

Maybe it is also of interest that the TRE author appears to be active again:

        https://github.com/laurikari/tre

At the moment, it seems to me that TRE should not be the default regular
expression engine on ARM, as its behaviour depends on the value of $LANG
(probably only on the character map, UTF-8 or not), leading to this bug, but
most probably also to other problems that may be more difficult to spot.

Kind regards,

Johannes


-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-5-kirkwood
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages r-base-core depends on:
ii  libblas3gf [libblas. 1.2-8               Basic Linear Algebra Reference imp
ii  libc6                2.11.3-4            Embedded GNU C Library: Shared lib
ii  libcairo2            1.8.10-6            The Cairo 2D vector graphics libra
ii  libgcc1              1:4.4.5-8           GCC support library
ii  libgfortran3         4.4.5-8             Runtime library for GNU Fortran ap
ii  libglib2.0-0         2.24.2-1            The GLib library of C routines
ii  libgomp1             4.4.5-8             GCC OpenMP (GOMP) support library
ii  libice6              2:1.0.6-2           X11 Inter-Client Exchange library
ii  libjpeg62            6b1-1               The Independent JPEG Group's JPEG 
ii  liblapack3gf [liblap 3.2.1-8             library of linear algebra routines
ii  liblzma2             5.0.0-2             XZ-format compression library
ii  libpango1.0-0        1.28.3-1+squeeze2   Layout and rendering of internatio
ii  libpaper-utils       1.1.24              library for handling paper charact
ii  libpng12-0           1.2.44-1+squeeze4   PNG library - runtime
ii  libreadline6         6.1-3               GNU readline and history libraries
ii  libsm6               2:1.1.1-1           X11 Session Management library
ii  libtiff4             3.9.4-5+squeeze9    Tag Image File Format (TIFF) libra
ii  libx11-6             2:1.3.3-4+squeeze1  X11 client-side library
ii  libxext6             2:1.1.2-1+squeeze1  X11 miscellaneous extension librar
ii  libxss1              1:1.2.0-2           X11 Screen Saver extension library
ii  libxt6               1:1.0.7-1+squeeze1  X11 toolkit intrinsics library
ii  tcl8.5               8.5.8-2             Tcl (the Tool Command Language) v8
ii  tk8.5                8.5.8-1             Tk toolkit for Tcl and X11, v8.5 -
ii  ucf                  3.0025+nmu1         Update Configuration File: preserv
ii  unzip                6.0-4               De-archiver for .zip files
ii  xdg-utils            1.0.2+cvs20100307-2 desktop integration utilities from
ii  zip                  3.0-3               Archiver for .zip files
ii  zlib1g               1:1.2.3.4.dfsg-3    compression library - runtime

Versions of packages r-base-core recommends:
ii  r-base-dev        3.0.1-3~squeezecran3.0 GNU R installation of auxiliary GN
ii  r-doc-html        3.0.1-3~squeezecran3.0 GNU R html manuals for statistical
ii  r-recommended     3.0.1-3~squeezecran3.0 GNU R collection of recommended pa

Versions of packages r-base-core suggests:
pn  ess               <none>                 (no description available)
ii  r-base-html       3.0.1-3~squeezecran3.0 GNU R html docs for statistical co
ii  r-doc-info        3.0.1-3~squeezecran3.0 GNU R info manuals statistical com
ii  r-doc-pdf         3.0.1-3~squeezecran3.0 GNU R pdf manuals for statistical 
ii  r-mathlib         3.0.1-3~squeezecran3.0 GNU R standalone mathematics libra

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to