Displaying 4 results from an estimated 4 matches for "ienc".
Did you mean:
enc
2010 Jun 19
1
more powerful iconv
...x ? x : STRING_ELT(x, i);
top_of_loop:
inbuf = CHAR(si); inb = LENGTH(si);
outbuf = cbuff.data; outb = cbuff.bufsize - 1;
@@ -622,7 +623,7 @@
goto next_char;
}
- if(res != -1 && inb == 0) {
+ if(res != -1 && inb == 0 && !isRawx) {
cetype_t ienc = CE_NATIVE;
nout = cbuff.bufsize - 1 - outb;
@@ -632,7 +633,12 @@
}
SET_STRING_ELT(ans, i, mkCharLenCE(cbuff.data, nout, ienc));
}
- else SET_STRING_ELT(ans, i, NA_STRING);
+ else if(!isRawx) SET_STRING_ELT(ans, i, NA_STRING);
+ else {
+ nout = cbuff.bufsize - 1 - out...
2018 Mar 29
2
Possible `substr` bug in UTF-8 Corner Case
...or (i = 0; i < so && str < end; i++) {
????????int used = utf8clen(*str);
????????if (i < sa - 1) { str += used; continue; }
-????????for (j = 0; j < used; j++) *buf++ = *str++;
+????????for (j = 0; j < used && str < end; j++) *buf++ = *str++;
????}
???? } else if (ienc == CE_LATIN1 || ienc == CE_BYTES) {
????for (str += (sa - 1), i = sa; i <= so; i++) *buf++ = *str++;
The change above removed the valgrind error for me.? I re-built R with the change and ran "make check" which seemed to work fine. I also ran some simple checks on UTF-8 strings and thi...
2018 Mar 29
0
Possible `substr` bug in UTF-8 Corner Case
...r < end; i++) {
> ????????int used = utf8clen(*str);
> ????????if (i < sa - 1) { str += used; continue; }
> -????????for (j = 0; j < used; j++) *buf++ = *str++;
> +????????for (j = 0; j < used && str < end; j++) *buf++ = *str++;
> ????}
> ???? } else if (ienc == CE_LATIN1 || ienc == CE_BYTES) {
> ????for (str += (sa - 1), i = sa; i <= so; i++) *buf++ = *str++;
>
> The change above removed the valgrind error for me.? I re-built R with the change and ran "make check" which seemed to work fine. I also ran some simple checks on UTF-8...
2004 Jun 29
1
OpenVMS SSH password expiry woes continue
...t.process.com/scripts/mxarchive/as_init.com?Info-ssh
[3]
http://search.hp.com/gwuseng/index.html?qp=site%3Ah71000.www7.hp.com&hpr=htt
p%3A//h71000.www7.hp.com/&hpa=http%3A//h71000.www7.hp.com/cgi-bin/feedback.e
xe&hpn=Return+to+OpenVMS+systems+site&hps=OpenVMS+systems+sites&h_audience=&
h_audiencerestrict=&hpl=1&hph=&lk=1&rf=2&la=en&uf=0&hpo=hphqglobal,hphqwwesg
,hphqbcs,hphqopenvms&es=0&ep=0