search for: lc_ctype

Displaying 20 results from an estimated 3503 matches for "lc_ctype".

2017 May 19
2
test fails when requesting LC_CTYPE
On RedHat Enterprise Linux 6, the test below fails (this is using the stock GCC 4.4.7) from R-devel r72707. LC_CTYPE is unset when I run it, but LANG=en_US.UTF-8 It also failed "yesterday" where as far as I recall the test code looked a bit different. Best, Kasper > ## Results differed by platform, but some gave incorrect results on string 10. > > > ## str() on large strings (in multibyte...
2014 May 14
1
Bug in read.dcf(all = TRUE)?
Hi, read.dcf() can modify the locale variable LC_CTYPE, and here is a minimal example: > Sys.getlocale('LC_CTYPE') [1] "en_US.UTF-8" > read.dcf(textConnection('a: b'), all = TRUE) a 1 b > Sys.getlocale('LC_CTYPE') [1] "C" After diagnosing the problem, it seems the on.exit() call in read.dcf() is...
2017 May 20
1
test fails when requesting LC_CTYPE
>>>>> Kasper Daniel Hansen <kasperdanielhansen at gmail.com> >>>>> on Fri, 19 May 2017 20:09:24 -0400 writes: > I rebuilt R with > export LC_CTYPE=en_US.UTF-8 > and the test still fail. Surprisingly, when I run R from the bin directory > and execute the test code, it runs without error: >> oloc <- Sys.getlocale("LC_CTYPE") >> mbyte.lc <- { > + if(.Platform$OS.type == "windows"...
2017 May 20
0
test fails when requesting LC_CTYPE
I rebuilt R with export LC_CTYPE=en_US.UTF-8 and the test still fail. Surprisingly, when I run R from the bin directory and execute the test code, it runs without error: > oloc <- Sys.getlocale("LC_CTYPE") > mbyte.lc <- { + if(.Platform$OS.type == "windows") + "English_United States...
2018 Mar 14
1
Warning for LC_CTYPE when R is ran through ssh
...code on a computer B from a computer A through shh using for example: system("ssh login at IPadress \"R -e 'print(1)'\"") [Note that I don't need indicate password because ~/.ssh/authorized_keys is used] I get a warning: During startup - Warning message: Setting LC_CTYPE failed, using "C" The code is working (it prints 1) but I don't like get a warning. R 3.4.3 is installed on the IPadress computer under Ubuntu 16.04 In this computer, I tried to add in .Rprofile this line: Sys.setlocale(category = "LC_CTYPE", locale = "en_US.UTF-8&qu...
2003 Nov 04
2
4-STABLE b0rked in share/locale/zh_CN.GBK
Murray, Your commits earlier this evening to zh_CN.GB18030 fixed that -STABLE breakage, but zh_CN.GBK appears still to be missing, which causes 'make installworld' to fail. Can you please fix this as well? install -m 644 -o root -g wheel uk_UA.KOI8-U.out /usr/share/locale/uk_UA.KOI8-U/LC_CTYPE install -m 644 -o root -g wheel zh_CN.eucCN.out /usr/share/locale/zh_CN.eucCN/LC_CTYPE install -m 644 -o root -g wheel zh_CN.GB18030.out /usr/share/locale/zh_CN.GB18030/LC_CTYPE install -m 644 -o root -g wheel zh_CN.GBK.out /usr/share/locale/zh_CN.GBK/LC_CTYPE install: /usr/share/locale/zh_CN.GB...
2017 Aug 03
2
fcitx-anthy request (for Japanese users)
.../2017 09:46 AM, Scott Robbins wrote: > > On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote: > > > > Ah, also, in my .xinitrc (I boot into text mode then run startx I have, > > > > above the line calling the window manager > > > > > > > > export LC_CTYPE=en_US.UTF-8 > > > I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files. > > What about, from terminal, doing someth...
2019 Jun 06
2
Setting LC_CTYPE=en_US.UTF-8 failed
...ote: > On 6/5/19 3:49 AM, Steven Penny wrote: >> Using this in my "~/.profile": >> >> ?? export LC_ALL=en_US.UTF-8 >> >> Yields this: >> >> ?? $ Rscript -e 'print(9)' >> ?? During startup - Warning message: >> ?? Setting LC_CTYPE=en_US.UTF-8 failed >> ?? [1] 9 >> >> This is confusing as the exact same environment works fine with other >> languages: >> >> ?? $ python3 -c 'print(9)' >> ?? 9 >> >> ?? $ ruby -e 'puts 9' >> ?? 9 > > The local...
2019 Jun 05
2
Setting LC_CTYPE=en_US.UTF-8 failed
Using this in my "~/.profile": export LC_ALL=en_US.UTF-8 Yields this: $ Rscript -e 'print(9)' During startup - Warning message: Setting LC_CTYPE=en_US.UTF-8 failed [1] 9 This is confusing as the exact same environment works fine with other languages: $ python3 -c 'print(9)' 9 $ ruby -e 'puts 9' 9
2019 Oct 07
2
R from EPEL 8 missing dependency on glibc-langpack
...or similar. Testing with the new CentOS 8 docker image: docker run -it centos:8 bash And then in docker: yum install epel-release yum config-manager --set-enabled PowerTools yum install R-devel Installation succeeds but when I start R: During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_COLLATE failed, using "C" 3: Setting LC_TIME failed, using "C" 4: Setting LC_MESSAGES failed, using "C" 5: Setting LC_MONETARY failed, using "C" 6: Setting LC_PAPER failed, using "C" 7: Setting LC_MEASUREMEN...
2002 Oct 02
0
rsync hangs at the end of the work.
...le/kl_GL/LC_NAME usr/lib/locale/nl_BE/LC_NAME => usr/lib/locale/kw_GB/LC_NAME usr/lib/locale/nl_NL/LC_NAME => usr/lib/locale/nl_BE/LC_NAME usr/lib/locale/nn_NO/LC_NAME => usr/lib/locale/nl_NL/LC_NAME usr/lib/locale/no_NO/LC_NAME => usr/lib/locale/nn_NO/LC_NAME [...] usr/lib/locale/en_DK/LC_CTYPE => usr/lib/locale/en_CA/LC_CTYPE usr/lib/locale/en_GB/LC_CTYPE => usr/lib/locale/en_DK/LC_CTYPE usr/lib/locale/en_HK/LC_CTYPE => usr/lib/locale/en_GB/LC_CTYPE usr/lib/locale/en_IE/LC_CTYPE => usr/lib/locale/en_HK/LC_CTYPE unexpected EOF in read_timeout Note the filesystems / and /back...
2006 Oct 26
1
Error: invalid multibyte string
...Error: invalid multibyte string ... > parse(text='"\\xFF"') Error: invalid multibyte string However, cat("\x7F\n\x80\n...\xFF\n") works. Using R --vanilla. SYSTEMS GIVING THE ERROR: > sessionInfo() R version 2.4.0 (2006-10-03) x86_64-unknown-linux-gnu locale: LC_CTYPE=en_AU.UTF-8;LC_NUMERIC=C;LC_TIME=en_AU.UTF-8;LC_COLLATE=en_AU.UTF-8;LC_MONETARY=en_AU.UTF-8;LC_MESSAGES=en_AU.UTF-8;LC_PAPER=en_AU.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_AU.UTF-8;LC_IDENTIFICATION=C R version 2.4.0 Patched (2006-10-03 r39576) i686-pc-linux-gnu locale: LC_CTY...
2017 Aug 02
2
fcitx-anthy request (for Japanese users)
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote: > > > >Ah, also, in my .xinitrc (I boot into text mode then run startx I have, > >above the line calling the window manager > > > >export LC_CTYPE=en_US.UTF-8 > > > >Do you have fcitx-gtk2 and fcitx-gtk3 installed? > >I repeat, I'm not an expert on this, my skill is in googling and finding > >out how others got it done, then just copying that and summarizing it. :) > > > > > Thank you, tried that but...
2017 Jun 28
0
Windows iconv() "failure" in certain locales
...just to get citation("readr") : > >> x <- c("Ekstr\xf8m", "J\xf6reskog", "bi\xdfchen Z\xfcrcher") >> Encoding(x1) <- "latin1" >> xU <- iconv(x1, "latin1", "UTF-8") > >> Sys.setlocale("LC_CTYPE", "Chinese") > [1] "Chinese (Simplified)_People's Republic of China.936" >> >> iconv(x1, "latin1", "") # NA NA NA > [1] NA NA NA >> iconv(xU, "UTF-8", "") # NA NA NA > [1] NA NA NA >> iconv(xU, &qu...
2017 Jun 27
3
Windows iconv() "failure" in certain locales
...install half of tidyverse just to get citation("readr") : > x <- c("Ekstr\xf8m", "J\xf6reskog", "bi\xdfchen Z\xfcrcher") > Encoding(x1) <- "latin1" > xU <- iconv(x1, "latin1", "UTF-8") > Sys.setlocale("LC_CTYPE", "Chinese") [1] "Chinese (Simplified)_People's Republic of China.936" > > iconv(x1, "latin1", "") # NA NA NA [1] NA NA NA > iconv(xU, "UTF-8", "") # NA NA NA [1] NA NA NA > iconv(xU, "UTF-8", "//TRANSL...
2005 Aug 13
2
How can I make these command prompt settings into universal settings?
I've got it so that I can enable Japanese input into an application by typing the following at a command prompt (with FireFox, for example): [dave at localhost ~]$ kinput2 -canna & [1] 10631 [dave at localhost ~]$ XMODIFIERS='@im=kinput2' LC_CTYPE=ja_JP.utf8 firefox However, I would rather not have to type in all that craziness each time I want to start an application. Further, instead of having to configure each application individually, it would be better to have this setting just on all the time for every application, both existing an...
2007 Mar 11
1
Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
...R-2.4.1. The script run OK under Linux but all accentuated characters appear as "?" when the script is run under Windows. As Gtk+ requires UTF-8, I thought it was the source of the problem and tried to change the default encoding (1252) in the following way: >Sys.setlocale("LC_CTYPE","fr_FR.UTF-8") [1] "fr_FR.UTF-8" But when I try as a check: >Sys.getlocale("LC_TYPE") [1] "French_France.1252" So it seems that Sys.setlocale() has not changed anything. What am I doing wrong ? Thank you for your help, Yvonnick Noel U. of Renn...
2005 Aug 22
1
Internationalization questions
...tkmessageBox(), but it is a bit awkward. (2) I'm still looking for a reliable way to determine whether R is using English. Currently, I have the function English <- function() { env <- Sys.getenv() names(env) <- toupper(names(env)) LANG <- env["LANGUAGE"] LC_CTYPE <- Sys.getlocale("LC_CTYPE") if (!is.na(LANG)) length(grep("^en", LANG, ignore.case=TRUE)) > 0 else LC_CTYPE == "C" || length(grep("^en", LC_CTYPE, ignore.case=TRUE)) > 0 } (adapting and extending a suggestion by Simon Urbanek)...
1997 Nov 28
0
R-alpha: Latin-1 characters / Locale etc.
...everyone's information; thanks a lot, Peter!] >>>>> "PD" =3D=3D Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes: PD> Hmmm. You may need a call to PD> #include <locale.h> PD> setlocale(LC_ALL,"") PD> (or LC_CTYPE?) before your environment variables take effect. Yes, this was `it'. Maybe R needs such a call also? (I did not yet look in the src) sophie{maechler}328> cat isalpha-tst.c =09=09=09 ------------- /*--- Testing 'locale' [env.variable LC_CTYPE ] --------------- */ #include &l...
2016 Apr 05
2
Under Windows, Rgui and Rterm crash if one tries to close the graphic device while identify or locator are running
...one with Win 8.1 and one with Win 10). I did not see the problem in linux (see below) WINDOWS ************** > sessionInfo() R version 3.3.0 beta (2016-04-04 r70420) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 10586) locale: [1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 [3] LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C [5] LC_TIME=Italian_Italy.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > sessionInfo() R version 3.2.2 Patched (2015-09-29 r69441) Platform: x86_64-w64-mingw32/x64 (64-bit) R...