all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Wiktor Żelazny" <wz@freeshell.de>
To: help-guix <help-guix@gnu.org>
Subject: Re: Locales in a Guix container (somewhat related to r-readr)?
Date: Mon, 24 Feb 2020 15:27:17 +0100	[thread overview]
Message-ID: <20200224142717.7ik6xpzdlsngd2sr@wzguix> (raw)
In-Reply-To: <CAJ3okZ0P76u1KSnDM5DCbsLdFPR7r-_xpMSDsu-Fz4k407Sgcg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

On Fri, Feb 21, 2020 at 12:35:18PM +0100, zimoun wrote:

> > I don’t know if it’s some recent change in the Guix behavior, but I
> > noticed that I’m getting no utf-8 locales in a container. I
> > discovered it while reading a utf-8 csv file using
> > readr::read_csv().
>
> Could you provide a minimalist example?

Not with readr::read_csv() because of the tzdata thing, but even
simpler:

   cat > test.csv << "EOF"
   abc
   ábč
   àbç
   äbc
   åbc
   EOF
   guix environment --ad-hoc r -- Rscript -e 'read.csv("test.csv")'
   guix environment -C --pure --ad-hoc r -- Rscript -e 'read.csv("test.csv")'

The first one gives me, as expected:

   abc
   1 ábč
   2 àbç
   3 äbc
   4 åbc

The other one:

                  abc
   1 \303\241b\304\215
   2 \303\240b\303\247
   3        \303\244bc
   4        \303\245bc
   sh: rm: command not found

(BTW, no idea where this “rm” comes from)

> I am not convinced by the hack of bug#39665 [1].
>
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39665#8

Sure, I’m not suggesting it as a satisfactory solution. But I think it sheds
some light on where the problem may lie.

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

      reply	other threads:[~2020-02-24 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 15:39 Locales in a Guix container (somewhat related to r-readr)? Wiktor Żelazny
2020-02-21 11:35 ` zimoun
2020-02-24 14:27   ` Wiktor Żelazny [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200224142717.7ik6xpzdlsngd2sr@wzguix \
    --to=wz@freeshell.de \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.