search for: support_mbc

Displaying 11 results from an estimated 11 matches for "support_mbc".

Did you mean: support_mbcs
2007 Jun 24
2
problem gsub in the locale of CP932 and SJIS (PR#9751)
...first byte. --- R-2.5.0.orig/src/main/character.c 2007-04-03 11:05: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 == '\\')...
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...lt; typedef enum { > < Rprt_adj_left = 0, > < Rprt_adj_right = 1, > < Rprt_adj_centre = 2 > < } Rprt_adj; > < > 872,939c864 > < char *EncodeString(SEXP, int, int, Rprt_adj); > < > < > < #if defined(HAVE_WCHAR_H) && defined(SUPPORT_MBCS) > < #include <wchar.h> > < #endif > < > < /* main/util.c */ > < void UNIMPLEMENTED_TYPE(char *s, SEXP x); > < void UNIMPLEMENTED_TYPEt(char *s, SEXPTYPE t); > < Rboolean utf8strIsASCII(char *str); > < #ifdef SUPPORT_MBCS > < int utf8clen...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...> SEXP R_data_class(SEXP , int); 864,869d861 < typedef enum { < Rprt_adj_left = 0, < Rprt_adj_right = 1, < Rprt_adj_centre = 2 < } Rprt_adj; < 872,939c864 < char *EncodeString(SEXP, int, int, Rprt_adj); < < < #if defined(HAVE_WCHAR_H) && defined(SUPPORT_MBCS) < #include <wchar.h> < #endif < < /* main/util.c */ < void UNIMPLEMENTED_TYPE(char *s, SEXP x); < void UNIMPLEMENTED_TYPEt(char *s, SEXPTYPE t); < Rboolean utf8strIsASCII(char *str); < #ifdef SUPPORT_MBCS < int utf8clen(char c); < #define mbs_init(x) memset(x,...
2016 Nov 08
2
proplems installing R 2.5 on Ubuntu 14.04
----- Am 8. Nov 2016 um 15:26 schrieb Johannes Ranke johannes.ranke at jrwb.de: > Hi > > try > > apt-get build-dep r-base > > this installs the headers required for building current R, which probably also > covers older versions - at least it will give you X11 headers. > > Good luck, > > Johannes > > Hi Johannes, i tried that and it didn't
2007 Sep 13
1
chartr better
...le_t *b) +{ + return a->c_old - b->c_old; +} +static inline int xtable_key_comp(const wchar_t *a, const xtable_t *b) +{ + return *a - b->c_old; +} + SEXP attribute_hidden do_chartr(SEXP call, SEXP op, SEXP args, SEXP env) { SEXP old, _new, x, y; @@ -2064,14 +2074,18 @@ #ifdef SUPPORT_MBCS if(mbcslocale) { int j, nb, nc; - wchar_t xtable[65536 + 1], c_old, c_new, *wc; + xtable_t *xtable; + int xtable_cnt; + wchar_t c_old, c_new, *wc; const char *xi, *s; struct wtr_spec *trs_old, **trs_old_ptr; struct wtr_spec...
2005 Aug 26
1
wchar and wstring.
Hello all, I am writing an R interface to some C++ files which make use of std::wstring classes for internationalization. Previously (when I wanted to make R strings from C++ std::strings), I would do something like this to construct a string in R from the results of the parse. SET_VECTOR_ELT(vals, i++, mkString(header.GetHeader().c_str())); However, now the call header.GetHeader().c_str()
2006 May 08
2
problems compiling under solaris
Hi! I've been trying to compile R with gcc version 3.4.2 on a box running 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]: ***
2016 Nov 08
0
proplems installing R 2.5 on Ubuntu 14.04
...collect2: error: ld returned 1 exit status configure:44439: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "R" | #define PACKAGE_TARNAME "R" | #define PACKAGE_VERSION "2.5.1" | #define PACKAGE_STRING "R 2.5.1" [...] #define SUPPORT_MBCS 1 | /* end confdefs.h. */ | #include <X11/Xlib.h> | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | XrmInitialize () | ; | return 0; | } configure:44503: result: no configure:4...
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
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...double *descent_max, + double *width_sum); static void PDF_Text(double x, double y, const char *str, double rot, double hadj, const pGEcontext gc, pDevDesc dd); + static void PDF_free_annots(PDFDesc *pd); + static void PDF_add_annot(PDFDesc *pd, char *str); #ifdef SUPPORT_MBCS static double PDF_StrWidthUTF8(const char *str, const pGEcontext gc, *************** *** 5315,5320 **** --- 5335,5348 ---- } pd->pagemax = 100; + pd->annots = (char **) calloc(100, sizeof(char *)); + if(!pd->annots) { + free(pd->pos); free(pd->pag...
2009 Feb 21
1
Install failure (PR#13545)
...LIB_CFLAGS='' SHLIB_CXXFLAGS='' SHLIB_CXXLD='' SHLIB_CXXLDFLAGS='' SHLIB_EXT='' SHLIB_FCD='' SHLIB_FCLD='' SHLIB_FCLDFLAGS='' SHLIB_FFLAGS='' SHLIB_LD='' SHLIB_LDFLAGS='' SHLIB_LIBADD='' STRIP='' SUPPORT_MBCS='' SUPPORT_UTF8='' TAR='tar' TCLTK_CPPFLAGS='' TCLTK_LIBS='' TCL_CONFIG='' TEX='false' TEXI2DVI='false' TIFF_LIBS='' TK_CONFIG='' USE_EXPORTFILES_FALSE='' USE_EXPORTFILES_TRUE='' USE_EXTERNAL_BLAS_FALSE...