Displaying 20 results from an estimated 161 matches for "mbrtowc".
2007 May 23
2
Possible ld.exe problem when building
...a ../nmath/libnmath.a graphapp/ga.a getline/gl.a ../extra/xdr/libxdr.a ../extra/zlib/libz.a ../extra/pcre/libpcre.a ../extra/bzip2/libbz2.a ../extra/intl/libintl.a ../extra/trio/libtrio.a dllversion.o -L. -lg2c -lRblas -lcomctl32 -lversion
console.o:console.c:(.text+0x44): undefined reference to `mbrtowc'
console.o:console.c:(.text+0x9d): undefined reference to `mbrtowc'
console.o:console.c:(.text+0x14f): undefined reference to `mbrtowc'
console.o:console.c:(.text+0x6b1): undefined reference to `mbrtowc'
console.o:console.c:(.text+0xc7c): undefined reference to `mbrtowc'
console...
2007 Jun 24
2
problem gsub in the locale of CP932 and SJIS (PR#9751)
...1: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') {
k = p[1] - '0';
@@ -1014,6 +1025,18 @@...
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
2015 Mar 04
0
Errors on Windows with grep(fixed=TRUE) on UTF-8 strings
...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_MAX, &mb_st);
+ used = utf8clen(target[ib]);
if (used <= 0) break;
ib += used;
}
- } else if (!useBytes && use_UTF8) {
+ } else if (!useBytes && mbcslocale) { /* skip along by chars */
+ mbstate_t mb_st;
int ib, used;
+ mbs_i...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...this a UTF-8 locale? */
> < LibExtern Rboolean mbcslocale INI_as(FALSE); /* is this a MBCS locale? */
> ---
>> extern Rboolean utf8locale INI_as(FALSE); /* is this a UTF-8 locale? */
> 596a594
>> # define duplicated Rf_duplicated
> 633c631
> < # define Mbrtowc Rf_mbrtowc
> ---
>> # define match Rf_match
> 686a685
>> int R_ShowFile(char*, char*);
> 799,800c798
> < SEXP R_data_class(SEXP , Rboolean);
> < SEXP R_data_class2(SEXP);
> ---
>> SEXP R_data_class(SEXP , int);
> 864...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...tf8locale INI_as(FALSE); /* is this a UTF-8 locale? */
< LibExtern Rboolean mbcslocale INI_as(FALSE); /* is this a MBCS locale? */
---
> extern Rboolean utf8locale INI_as(FALSE); /* is this a UTF-8 locale? */
596a594
> # define duplicated Rf_duplicated
633c631
< # define Mbrtowc Rf_mbrtowc
---
> # define match Rf_match
686a685
> int R_ShowFile(char*, char*);
799,800c798
< SEXP R_data_class(SEXP , Rboolean);
< SEXP R_data_class2(SEXP);
---
> SEXP R_data_class(SEXP , int);
864,869d861
< typedef enum {
< Rprt_adj_...
2010 Feb 22
2
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems
...f95
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 iconv accepts "UTF-8&...
2010 Dec 07
1
builder-ubuntu libguestfs FAILED build step 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...tests
hash
hash-pjw
hash-tests
hostent
ignore-value
include_next
inet_ntop
inet_ntop-tests
inet_pton
inet_pton-tests
inline
intprops
inttostr
ioctl
lchown
lchown-tests
listen
localcharset
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open
open-tests
openat
openat-die
openat-tests...
2011 Jun 14
1
builder-debian libguestfs FAILED build step 4ee190628bc05f0c8fad1f6d9c3e85619a91e8b8
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2011 Jul 12
0
builder-debian libguestfs FAILED build step c0f72f13c075a754afa7870ecf105138fba821bb
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2010 Dec 07
0
builder-ubuntu libguestfs FAILED build step 21810ade12e43fb4d8bfdcefb37a7d8bbe9eef8c
...tests
hash
hash-pjw
hash-tests
hostent
ignore-value
include_next
inet_ntop
inet_ntop-tests
inet_pton
inet_pton-tests
inline
intprops
inttostr
ioctl
lchown
lchown-tests
listen
localcharset
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open
open-tests
openat
openat-die
openat-tests...
2011 Jun 21
1
builder-debian libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2011 Jul 08
1
builder-debian libguestfs FAILED build step ebe3d8f43a0ab7f60f3c1c612f117e793179f644
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2011 Jul 19
0
builder-debian libguestfs FAILED build step d82438431c1551610eb7d9945fa76d6387534582
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2011 Jul 15
0
builder-debian libguestfs FAILED build step 1f0c650c8ffdf0602ec74b999f62d3efa6822c96
...complete
inttypes-tests
ioctl
lchown
lchown-tests
listen
localcharset
locale
locale-tests
localename
localename-tests
lock
lock-tests
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
malloca
malloca-tests
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
mbtowc
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open...
2011 Jan 28
0
builder-ubuntu libguestfs FAILED build step f060d5bcd40b4a6506d7994e67d57dccab1651b8
...tests
hash
hash-pjw
hash-tests
hostent
ignore-value
include_next
inet_ntop
inet_ntop-tests
inet_pton
inet_pton-tests
inline
intprops
inttostr
ioctl
lchown
lchown-tests
listen
localcharset
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open
open-tests
openat
openat-die
openat-tests...
2011 Jan 28
1
builder-debian libguestfs FAILED build step 82f5fdb0dbbc0c7b04861edeadf70c86c9342df2
...tests
hash
hash-pjw
hash-tests
hostent
ignore-value
include_next
inet_ntop
inet_ntop-tests
inet_pton
inet_pton-tests
inline
intprops
inttostr
ioctl
lchown
lchown-tests
listen
localcharset
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open
open-tests
openat
openat-die
openat-tests...
2010 Dec 14
1
builder-debian libguestfs FAILED build step dec770f171329868081985ca0aa3d52eb3759935
...tests
hash
hash-pjw
hash-tests
hostent
ignore-value
include_next
inet_ntop
inet_ntop-tests
inet_pton
inet_pton-tests
inline
intprops
inttostr
ioctl
lchown
lchown-tests
listen
localcharset
lseek
lseek-tests
lstat
lstat-tests
malloc-posix
manywarnings
mbrtowc
mbrtowc-tests
mbsinit
mbsinit-tests
mbsrtowcs
mbsrtowcs-tests
memchr
memchr-tests
mempcpy
memrchr
memrchr-tests
mgetgroups
mkdir
mkdir-tests
mkdtemp
multiarch
netdb
netdb-tests
netinet_in
netinet_in-tests
open
open-tests
openat
openat-die
openat-tests...
2014 May 29
3
Re: libguestfs error
...or fstatfs... yes
checking for futimens... yes
checking for getdelim... yes
checking for getdtablesize... yes
checking for getlogin_r... yes
checking for gettimeofday... yes
checking for nanotime... no
checking for getpwnam_r... yes
checking for lstat... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for mprotect... yes
checking for mkstemps... yes
checking for strerror_r... yes
checking for __xpg_strerror_r... yes
checking for pipe2... yes
checking for pread... yes
checking for readlink... yes
checking for secure_getenv... yes
checking for setenv... yes
checking for sleep... ye...