Bug #2362

TXM: 0.7.9, on Windows, commands based on R don't work with accented characters in user login

Ajouté par Matthieu Decorde il y a plus de 7 ans. Mis à jour il y a plus de 6 ans.

Statut:New Début:09/04/2018
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Stats / R Temps passé: -
Version cible:TXM 0.X.X

Description

R seems to be working (the start-up message is normal), but commands using R don't work.

Logs show that the setwd R command is failing when the user home path contains accented characters.

Solution 1 (temporary)

Change TXM user home path to a path without accents.

Diagnostic

check if the "--encoding utf8" R launch parameter is working correctly.

The Man page says:

--encoding=ENC
              Specify encoding to be used for stdin

       --encoding ENC

We use "--encoding utf8".

Solution 2 (definitive)

On Windows, the "--encoding utf8" option is not sufficient for setwd to work, we must also tel Rserve the UTF8 encoding for input/output (see RConnect()).

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 7 ans

  • Description mis à jour (diff)

#2 Mis à jour par Serge Heiden il y a plus de 7 ans

  • Description mis à jour (diff)

#3 Mis à jour par Serge Heiden il y a plus de 7 ans

  • Description mis à jour (diff)

#4 Mis à jour par Serge Heiden il y a plus de 7 ans

  • Sujet changé de TXM: 0.7.9, on Windows, R setwd failing R startup sequence à TXM: 0.7.9, on Windows, commands based on R don't work with accented characters in user login
  • Description mis à jour (diff)

#5 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#6 Mis à jour par Matthieu Decorde il y a plus de 6 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.X.X

Formats disponibles : Atom PDF