Displaying 20 results from an estimated 4000 matches similar to: "[PATCH] don't always call setlocale() on Windows"
2014 Apr 30
2
make fullcheck fails: strtod/atof and locale
make fullcheck fails on my computer: flac cannot recognize --skip option
that contains decimal point, e.g. "--skip=1.234".
System locale uses comma as a separator, so strtod/atof expect comma, not point,
and "make fullcheck" fails.
Here's what I can see in FLAC source code:
atof() function found in:
file: src/share/grabbag/seektable.c
function:
2005 Apr 17
3
RFC: hexadecimal constants and decimal points
These are some points stimulated by reading about C history (and
related in their implementation).
1) On some platforms
> as.integer("0xA")
[1] 10
but not all (not on Solaris nor Windows). We do not define what is
allowed, and rely on the OS's implementation of strtod (yes, not strtol).
It seems that glibc does allow hex: C99 mandates it but C89 seems not to
allow it.
I
2010 Dec 10
1
Consistency of variable storage in R and Sys.setlocale (is this a feature or bug)?
<I was not sure if this should go to R-devel or R-help. If I e-mailed this
to the wrong place, please let me know.>
Hello dear R-devel members,
I came by an oddity, with regards to how character variables are being
transformed when they are in Hebrew, and when Sys.setlocale is changed.
Here is an example:
# first, let's set the locale to Hebrew
Sys.setlocale("LC_ALL",
2017 Jun 23
2
LC_TIME not set correctly by Sys.setlocale() ?
Related to the following question on Stackoverflow:
https://stackoverflow.com/questions/44723690/unexpected-behavior-of-sys-setlocale#44723690
It appears as if Sys.setlocale() does not update LC_TIME correctly for use
in date formatting. Although R reports that LC_TIME is changed to the new
setting after use of Sys.setlocale(), as.Date() still uses the old
settings. The only way to update this is
2018 Mar 20
1
WISH: Sys.setlocale() to return value invisibly
Contrary to, say, Sys.setenv(), Sys.setlocale() returns it's value
visibly. This means that if you for instance add:
Sys.setlocale("LC_COLLATE", "C")
to your .Rprofile file, it will print:
[1] "C"
at startup. The workaround is to wrap the call in invisible(), but I'd
argue that any "setter" function should return invisibly.
Some more details:
2013 Jan 27
2
[LLVMdev] problem with setLocale
In order to print unicode characters with llvm, I used setLocale in llvm ir:
call i8* @setlocale(i32 6, i8* getelementptr inbounds ([1 x i8]* @pe,
i32 0, i32 0)) nounwind
where @pe is defined as follows:
@pe = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
However, I got the following error:
*** glibc detected *** ./test/bin/executable: free(): invalid next size
2003 Dec 05
1
How to use Sys.setlocale("LC_NUMERIC")?
Can you help me to use Sys.setlocale("LC_NUMERIC", "cs_CZ") (comma as a
decimal point) in some useful way, without all the workarounds?
After switching to Sys.setlocale("LC_NUMERIC", "cs_CZ"):
-- How do I set attributes in read.csv2() not to get columns of real
numbers (decimal point = comma, field separator = semicolon) as factors?
Wokrkaround: I can go
2007 Mar 11
1
Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
Dear R users,
I'm trying to have a gWiddgetsRGtk2 script run under 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:
2013 Jan 28
0
[LLVMdev] problem with setLocale
Hi Ali,
On 28/01/13 06:38, ali_sedaghat wrote:
> Hi Ciao, my compiler is written in java and generates some .ll files as its
> output. Each of these .ll files is converted to an object file using llc.
> Then, I use clang++ to link them and generate an executable file without
> linking with any external libraries, so I cannot understand what you mean.
> Sorry, if my question sounds
2009 Jul 28
1
Sys.setlocale
When checking an R package of mine, I get
* checking R files for syntax errors ... WARNING
Warning in Sys.setlocale("LC_CTYPE", "en_US") :
OS reports request to set locale to "en_US" cannot be honored
'Sys.setlocale' is not used in any of my R functions. What should I do
to fix the Warning? I have never seen this before.
My locale is "sv_SE",
2013 Jan 28
2
[LLVMdev] problem with setLocale
Hi Ciao, my compiler is written in java and generates some .ll files as its
output. Each of these .ll files is converted to an object file using llc.
Then, I use clang++ to link them and generate an executable file without
linking with any external libraries, so I cannot understand what you mean.
Sorry, if my question sounds silly to you
--
View this message in context:
2013 Jan 27
0
[LLVMdev] problem with setLocale
Hi Ali, did you link your program statically? Try linking it dynamically.
Ciao, Duncan.
On 27/01/13 07:36, Ali Sedaghat wrote:
> In order to print unicode characters with llvm, I used setLocale in llvm ir:
>
> call i8* @setlocale(i32 6, i8* getelementptr inbounds ([1 x i8]* @pe, i32
> 0, i32 0)) nounwind
>
> where @pe is defined as follows:
>
> @pe = private
2006 May 22
4
Sys.setlocale upsets windows graphics device (PR#8887)
Full_Name: Edward McNeil
Version: 2.3.0
OS: Widows XP
Submission from: (NULL) (203.170.234.5)
Type the following:
> Sys.setlocale("LC_ALL","C")
> hist(1:10)
CRASH
2017 Jun 23
0
LC_TIME not set correctly by Sys.setlocale() ?
On 23/06/2017 15:35, Joris Meys wrote:
> Related to the following question on Stackoverflow:
> https://stackoverflow.com/questions/44723690/unexpected-behavior-of-sys-setlocale#44723690
>
> It appears as if Sys.setlocale() does not update LC_TIME correctly for use
> in date formatting. Although R reports that LC_TIME is changed to the new
> setting after use of Sys.setlocale(),
2015 Apr 14
1
httpuv not installing on fedora 19
Hi: I'm on fedora 19 ( I know. I'm behind : ) and I'm trying to install the
httpuv library
which depends on Rcpp. When I try to install it with dependencies = TRUE,
I get the following error. ( I'm only showing the end of the install
messages. Things
go okay for a good while ).
INSTALLATION MESSAGES
#================================================================
make[1]:
2014 Feb 25
1
Bug: Environment vars are changed before use (locale LANG, LC_*)
Hi
I am using
OpenSSH_6.2p2 Ubuntu-6ubuntu0.1, OpenSSL 1.0.1e 11 Feb 2013
on a Ubuntu 13.10 release for access to various kinds of systems. This
recent Ubuntu OS insists on standard conforming locales, i.e.
de_DE.UTF-8 instead of de_DE.utf8 as in the previous release. When I am
using SSH to communicate with another system not being able to process
the standard conformant setting (in my case
2014 Feb 27
1
R and LANGUAGE
Diverted from ESS-help.
It is really about R's LANGUAGE, locales and
then a wish for sessionInfo() :
>>>>> Sparapani, Rodney <rsparapa at mcw.edu>
>>>>> on Thu, 20 Feb 2014 19:39:33 +0000 writes:
>> Just guessing: perhaps this is something that is set when
>> R is initialized and not queried every time something is
>>
2014 Dec 06
2
GCC/clang compilation issues
Hi,
I finally got around to trying to update FLAC for the MAME/MESS
project again. There were several issues I was able to fix and will
submit patches later, but I hit one roadblock with GCC and clang:
src/lib/libflac/libFLAC/stream_encoder.c:1696:43: error: cast from function call
of type 'double' to non-matching type 'FLAC__int32' (aka 'int')
2014 Dec 06
2
GCC/clang compilation issues
> Oliver St?neberg wrote:
>
> > I finally got around to trying to update FLAC for the MAME/MESS
> > project again. There were several issues I was able to fix and will
> > submit patches later, but I hit one roadblock with GCC and clang:
> >
> > src/lib/libflac/libFLAC/stream_encoder.c:1696:43: error: cast from function call
> > of type
2010 Apr 15
1
Changing locale?
Hi
I need for a specific application to change the locale of R 2.9.2 in
Ubuntu 9.04. Trying the example in ?Sys.setlocale:
Sys.setlocale("LC_TIME", "de_DE.utf8")
[1] ""
Warning message:
In Sys.setlocale("LC_TIME", "de_DE.utf8") :
la requ?te OS pour sp?cifier la localisation ? "de_DE.utf8" n'a pas pu
?tre honor?e
I tried the code