search for: mbstate_t

Displaying 20 results from an estimated 110 matches for "mbstate_t".

2007 Jun 24
2
problem gsub in the locale of CP932 and SJIS (PR#9751)
...05.000000000 +0900 +++ R-2.5.0/src/main/character.c 2007-06-24 22:31:06.000000000 +0900 @@ -986,6 +986,17 @@ char *p = repl; n = strlen(repl) - (regmatch[0].rm_eo - regmatch[0].rm_so); while (*p) { +#ifdef SUPPORT_MBCS + if(mbcslocale){ + int clen; + mbstate_t mb_st; + mbs_init(&mb_st); + if((clen = Mbrtowc(NULL, p, MB_CUR_MAX, &mb_st)) > 1){ + p+=clen; + continue; + } + } +#endif if (*p == '\\') { if ('1' <= p[1] && p[1] <= '9...
2015 Mar 02
2
Errors on Windows with grep(fixed=TRUE) on UTF-8 strings
On Windows, grep(fixed=TRUE) throws errors with some UTF-8 strings. Here's an example (must be run on Windows to reproduce the error): Sys.setlocale("LC_CTYPE", "chinese") y <- rawToChar(as.raw(c(0xe6, 0xb8, 0x97))) Encoding(y) <- "UTF-8" y # [1] "?" grep("\n", y, fixed = TRUE) # Error in grep("\n", y, fixed = TRUE) : invalid
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...ry-only installation, or even an installed version of R). In particular, Defn,.h depends on config.h, and it seems you installed a binary version of R and used separate sources. I would suggest building R from the sources, and then seeing if you can install your package into the build tree. mbstate_t will be defined in wchar.h, and if configure is working correctly that will be included by Defn.h. (And we have heard no reports to the contrary.) On Tue, 19 Jul 2005 boycer at u.washington.edu wrote: > Full_Name: Richard Boyce > Version: 2.1.-1 > OS: Debian testing/unstable > Subm...
2015 Mar 04
0
Errors on Windows with grep(fixed=TRUE) on UTF-8 strings
...ws.) diff --git src/main/grep.c src/main/grep.c index 6e6ec3e..348c63d 100644 --- src/main/grep.c +++ src/main/grep.c @@ -664,27 +664,27 @@ static int fgrep_one(const char *pat, const char *target, } return -1; } - if (!useBytes && mbcslocale) { /* skip along by chars */ - mbstate_t mb_st; + if (!useBytes && use_UTF8) { int ib, used; - mbs_init(&mb_st); for (ib = 0, i = 0; ib <= len-plen; i++) { if (strncmp(pat, target+ib, plen) == 0) { if (next != NULL) *next = ib + plen; return i; } - used = (int) Mbrtowc(NULL, target+ib, MB_CUR_M...
2006 May 08
2
problems compiling under solaris
...nning Solaris 2.6. I keep on hitting this error during the compile: gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -std=gnu99 -c dynload.c -o dynload.o In file included from dynload.c:33: ../../src/include/Defn.h:943: error: parse error before "mbstate_t" make[3]: *** [dynload.o] Error 1 Has anyone else hit this kind of compile error? TIA, -y [[alternative HTML version deleted]]
2016 Nov 08
2
proplems installing R 2.5 on Ubuntu 14.04
Hi, i'd like to install R 2.5 on an Ubuntu 14.04. I have a special software requiring this old version. While ./configure, i get the following error: checking for mbstate_t... yes checking for X... no configure: error: --with-x=yes (default) and X11 headers/libs are not available The problem is that i don't know which headers or libraries are missing, and when i search with aptitude in the Ubuntu repositories i find a ton of them and don't know which one to i...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...gcc -I/usr/lib/R/include -I/usr/src/r-base-2.1.1/src/include -fPIC -g -O2 -c Reventloop.c -o Reventloop.o In file included from /usr/src/r-base-2.1.1/src/include/IOStuff.h:30, from Reventloop.c:8: /usr/src/r-base-2.1.1/src/include/Defn.h:886: error: syntax error before "mbstate_t" Reventloop.c: In function `R_mainLoop': Reventloop.c:112: warning: assignment from incompatible pointer type Reventloop.c:156: warning: assignment from incompatible pointer type make: *** [Reventloop.o] Error 1 ERROR: compilation failed for package 'vjREventLoop' ** Removing '...
2010 Feb 22
2
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems
...un/sunstudio12.1/bin/sunf95 FCFLAGS=$FFLAGS FCPICFLAGS=-Kpic MAKE=dmake R install guide also indicates that: "The OS needs to have enough support for wide-character types: this is checked at configuration. Specifically, the C99 functionality of headers wchar.h and wctype.h, types wctans_t and mbstate_t and functions mbrtowc, mbstowcs, wcrtomb, wcscoll, wcstombs, wctrans, wctype, and iswctype." Configure stops with the following error message: checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for iconv... in libiconv checking whether icon...
2010 Feb 23
1
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems (rt)
...in the R install guide. > >> R install guide also indicates that: "The OS needs to have enough > support > > for wide-character types: this is checked at configuration. Specifically, > > the C99 functionality of headers wchar.h and wctype.h, types wctans_t and > > mbstate_t and functions mbrtowc, mbstowcs, wcrtomb, wcscoll, wcstombs, > > wctrans, wctype, and iswctype." > > Configure stops with the following error message: > > > > configure:39534: result: no > > configure:39710: error: Support for MBCS locales is required.* > >...
2010 May 20
3
Install eventmachine on Debian Lenny
...tor, destructor, or type conversion before ‘extern’ /usr/include/wchar.h:304: error: expected initializer before ‘__THROW’ /usr/include/wchar.h:308: error: expected ‘,’ or ‘...’ before ‘*’ token /usr/include/wchar.h:308: error: expected initializer before ‘__THROW’ /usr/include/wchar.h:314: error: ‘mbstate_t’ has not been declared /usr/include/wchar.h:314: error: expected initializer before ‘__THROW’ /usr/include/wchar.h:318: error: ‘mbstate_t’ has not been declared /usr/include/wchar.h:318: error: expected initializer before ‘__THROW’ /usr/include/wchar.h:322: error: ‘mbstate_t’ has not been declared...
2016 Nov 08
0
proplems installing R 2.5 on Ubuntu 14.04
On 8 November 2016 at 14:39, Lentes, Bernd wrote: | i'd like to install R 2.5 on an Ubuntu 14.04. | I have a special software requiring this old version. | | While ./configure, i get the following error: | | checking for mbstate_t... yes | checking for X... no | configure: error: --with-x=yes (default) and X11 headers/libs are not available | | The problem is that i don't know which headers or libraries are missing, and when i search with aptitude in the Ubuntu repositories i find a ton of them and don't know which...
2005 May 23
0
R 2.1 installation on Mac OS 10.2
...-no-cpp-precomp -I. -I../../src/include -I../../src/include > -I/usr/X11R6/include -I/sw/include -I/usr/local/include > -DHAVE_CONFIG_H -fno-common -g -O2 -c dynload.c -o dynload.lo > In file included from dynload.c:37: > ../../src/include/Defn.h:886: error: parse error before "mbstate_t" > make[3]: *** [dynload.lo] Error 1 > make[2]: *** [R] Error 2 > make[1]: *** [R] Error 1 > make: *** [R] Error 1 > Could anyone give me a hint how to work around this? Best, Georg P.S. I am on digest mode, cc??ing to me directly would be highly appreciated
2009 Apr 09
3
type.convert (PR#13646)
Full_Name: Stefan Raberger Version: 2.8.1 OS: Windows XP Submission from: (NULL) (213.185.163.242) Hi there, I recently noticed some strange behaviour of the command "type.convert", depending on the startup mode used. But there also seems to be different behaviour on different PCs (all running the same OS and the same version of R). On PC1: When I start R in SDI mode (RGui --no-save
2010 Dec 07
1
builder-ubuntu libguestfs FAILED build step 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...ine.m4 m4/intmax_t.m4 m4/inttostr.m4 m4/inttypes_h.m4 m4/ioctl.m4 m4/lchown.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pread.m4 m4/printf.m4 m4/pr...
2010 Dec 07
0
builder-ubuntu libguestfs FAILED build step 21810ade12e43fb4d8bfdcefb37a7d8bbe9eef8c
...ine.m4 m4/intmax_t.m4 m4/inttostr.m4 m4/inttypes_h.m4 m4/ioctl.m4 m4/lchown.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pread.m4 m4/printf.m4 m4/pr...
2009 Aug 20
2
getting R 2.9.1 from the tar.gz file
...tombs exists and is declared... yes checking whether wctrans exists and is declared... yes checking whether iswblank exists and is declared... yes checking whether wctype exists and is declared... yes checking whether iswctype exists and is declared... yes checking for wctrans_t... yes checking for mbstate_t... yes checking for ICU... no checking for X... no configure: error: --with-x=yes (default) and X11 headers/libs are not available root at LMramba-dll-d:/home/lmramba/R/R-2.9.1# make make: *** No targets specified and no makefile found. Stop. Kind regards, Lazarus Mramba Junior Statistician P....
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...k.m4 m4/lib-prefix.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/locale_h.m4 m4/localename.m4 m4/lock.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/malloca.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/mbtowc.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pipe.m4 m4/pre...
2011 Jan 28
0
builder-ubuntu libguestfs FAILED build step f060d5bcd40b4a6506d7994e67d57dccab1651b8
...ine.m4 m4/intmax_t.m4 m4/inttostr.m4 m4/inttypes_h.m4 m4/ioctl.m4 m4/lchown.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pread.m4 m4/printf.m4 m4/pr...
2011 Jan 28
1
builder-debian libguestfs FAILED build step 82f5fdb0dbbc0c7b04861edeadf70c86c9342df2
...ine.m4 m4/intmax_t.m4 m4/inttostr.m4 m4/inttypes_h.m4 m4/ioctl.m4 m4/lchown.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pread.m4 m4/printf.m4 m4/pr...
2010 Dec 14
1
builder-debian libguestfs FAILED build step dec770f171329868081985ca0aa3d52eb3759935
...ine.m4 m4/intmax_t.m4 m4/inttostr.m4 m4/inttypes_h.m4 m4/ioctl.m4 m4/lchown.m4 m4/localcharset.m4 m4/locale-fr.m4 m4/locale-ja.m4 m4/locale-zh.m4 m4/longlong.m4 m4/lseek.m4 m4/lstat.m4 m4/malloc.m4 m4/manywarnings.m4 m4/mbrtowc.m4 m4/mbsinit.m4 m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/memchr.m4 m4/mempcpy.m4 m4/memrchr.m4 m4/mgetgroups.m4 m4/mkdir.m4 m4/mkdtemp.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/onceonly.m4 m4/open.m4 m4/openat.m4 m4/pathmax.m4 m4/perror.m4 m4/pread.m4 m4/printf.m4 m4/pr...