search for: mbstowc

Displaying 20 results from an estimated 35 matches for "mbstowc".

Did you mean: mbrtowc
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
2019 Feb 22
2
[PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
...st char *pattern, int caseinsensitive) +_match_pattern(const char *s, const char *pattern) { wchar_t *ws; wchar_t *wpattern; @@ -202,7 +200,7 @@ _match_pattern(const char *s, const char *pattern, int caseinsensitive) return 0; wpattern = (wchar_t *) alloca((len + 1) * sizeof (wchar_t)); mbstowcs(wpattern, pattern, len + 1); - return __match_pattern (ws, wpattern, caseinsensitive); + return __match_pattern (ws, wpattern); } /* @@ -212,7 +210,7 @@ _match_pattern(const char *s, const char *pattern, int caseinsensitive) * a positive match, 0 if there is no match at all. */ int -match...
2007 Sep 13
1
chartr better
...Calloc(1, struct wtr_spec); trs_old->type = WTR_INIT; trs_old->next = NULL; @@ -2084,6 +2098,7 @@ if(nc < 0) error(_("invalid multibyte string 'old'")); wc = (wchar_t *) R_AllocStringBuffer((nc+1)*sizeof(wchar_t), &cbuff); mbstowcs(wc, s, nc + 1); + wtr_build_spec(wc, trs_cnt); /* use count only */ wtr_build_spec(wc, trs_old); s = translateChar(STRING_ELT(_new, 0)); @@ -2096,38 +2111,54 @@ /* Initialize the pointers for walking through the old and new wtr_spec lists and retrievin...
2019 Mar 12
2
[PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
...;stdarg.h> > +#include <stdlib.h> > #include <wchar.h> > #include <wctype.h> > > @@ -191,16 +192,20 @@ _match_pattern(const char *s, const char *pattern) > wchar_t *ws; > wchar_t *wpattern; > size_t len; > + int ret; > > if ((len = mbstowcs(NULL, s, 0)) < 0) > return 0; > - ws = (wchar_t *) alloca((len + 1) * sizeof (wchar_t)); > + ws = (wchar_t *) xcalloc(len + 1, sizeof (wchar_t)); > mbstowcs(ws, s, len + 1); > if ((len = mbstowcs(NULL, pattern, 0)) < 0) > return 0; > - wpattern = (wchar_t *) al...
2019 Feb 20
3
[PATCH 0/2] Cygwin: allow user and group case-insensitive Unicode strings
Windows usernames are case-insensitive and almost any Unicode character is allowed in a username. The user should be able to login with her username given in any case and not be refused. However, this opens up a security problem in terms of the sshd_config Match rules. The match rules for user and group names have to operate case-insensitive as well, otherwise the user can override her settings
2010 Feb 22
2
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems
...GS=$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", &q...
2005 May 18
2
Networking functionality?
Is there (if not, can we get) the functionality to query for workstations in the local workgroup or domain? Zach
2010 Jun 11
2
Rgui crashed on Windows XP Home
...g program: D:\Program Files\R\R-2.11.1\bin/Rgui.exe [New Thread 2460.0xb7c] Program received signal SIGSEGV, Segmentation fault. 0x77c1d2b5 in msvcrt!mblen () from C:\WINDOWS\system32\msvcrt.dll (gdb) bt #0 0x77c1d2b5 in msvcrt!mblen () from C:\WINDOWS\system32\msvcrt.dll #1 0x77c1d3a9 in msvcrt!mbstowcs () from C:\WINDOWS\system32\msvcrt.dll #2 0x635597f9 in GA_newwindow () from D:\Program Files\R\R-2.11.1\bin\Rgraphapp.dll #3 0x63543a25 in GA_newcontrol () from D:\Program Files\R\R-2.11.1\bin\Rgraphapp.dll #4 0x63543c3f in GA_newimagebutton () from D:\Program Files\R\R-2.11.1\bin\Rgr...
2010 Feb 23
1
Compiling R on Linux with SunStudio 12.1: "wide-character type" problems (rt)
...> 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.* > > > > I am not sure if this...
2017 Aug 20
0
Wine release 2.15
...ed function msvcr80.dll._ismbcl0 called in 32-bit code 43527 Magic Online (Magic The Gathering: Online) Crashes due to LOCALE_SNAN returning empty string ---------------------------------------------------------------- Changes since 2.14: Akihiro Sagawa (2): msvcrt/tests: Add tests for mbstowcs and wcstombs with empty strings. msvcrt: Fix mbstowcs with empty strings. Alex Henrie (3): include: Add SetDefaultDllDirectories. include: Add CryptProtectMemory and CryptUnprotectMemory. include: Add GetNamedPipeClientProcessId. Alistair Leslie-Hughes (1): ntdll/te...
2018 Jan 02
0
Wine release 2.0.4
...indows applications 43912 wine-2.0.3/programs/wineboot/wineboot.c:684]: (style) Suspicious condition 44085 winecfg: Use more secure HTTPS URL in about ---------------------------------------------------------------- Changes since 2.0.3: Akihiro Sagawa (5): msvcrt/tests: Add tests for mbstowcs and wcstombs with empty strings. msvcrt: Fix mbstowcs with empty strings. readme: Update Japanese translation. explorer: Use neutral language for the version resource. regsvr32: Use neutral language for the version resource. Alex Henrie (5): msvcrt: Note that __stdio...
2016 Jun 24
0
Wine release 1.9.13
...d3drm: Fix viewport object creation. d3drm/tests: Modify all QI tests to compare vtables. Akihiro Sagawa (2): winegstreamer: Fix a crash in Gstreamer_Mp3_SetMediaType(). kernel32: Fix typo of i386 macro name in GetLargePageMinimum(). Alex Henrie (6): msvcr90: Add tests for mbstowcs and wcstombs with a negative count. ucrtbase: Implement _(un)lock_locales. ucrtbase: Implement _calloc_base. ucrtbase: Implement _malloc_base. ucrtbase: Implement _free_base. ucrtbase: Implement _realloc_base. Alexandre Julliard (36): user32: Add helper functio...
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...#endif > < #ifdef Win32 > < void R_fixslash(char *s); > < void R_fixbackslash(char *s); > < #endif > < #if defined(Win32) && defined(SUPPORT_UTF8) > < #define mbrtowc(a,b,c,d) Rmbrtowc(a,b) > < #define wcrtomb(a,b,c) Rwcrtomb(a,b) > < #define mbstowcs(a,b,c) Rmbstowcs(a,b,c) > < #define wcstombs(a,b,c) Rwcstombs(a,b,c) > < size_t Rmbrtowc(wchar_t *wc, const char *s); > < size_t Rwcrtomb(char *s, const wchar_t wc); > < size_t Rmbstowcs(wchar_t *wc, const char *s, size_t n); > < size_t Rwcstombs(char *s, const wchar_...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...fine Rf_strrchr(s, c) strrchr(s, c) < #endif < #ifdef Win32 < void R_fixslash(char *s); < void R_fixbackslash(char *s); < #endif < #if defined(Win32) && defined(SUPPORT_UTF8) < #define mbrtowc(a,b,c,d) Rmbrtowc(a,b) < #define wcrtomb(a,b,c) Rwcrtomb(a,b) < #define mbstowcs(a,b,c) Rmbstowcs(a,b,c) < #define wcstombs(a,b,c) Rwcstombs(a,b,c) < size_t Rmbrtowc(wchar_t *wc, const char *s); < size_t Rwcrtomb(char *s, const wchar_t wc); < size_t Rmbstowcs(wchar_t *wc, const char *s, size_t n); < size_t Rwcstombs(char *s, const wchar_t *wc, size_t n); < #e...
2009 Nov 13
0
Problem building R 2.10 release
...... yes checking whether mbrtowc exists and is declared... yes checking whether wcrtomb exists and is declared... yes checking whether wcscoll exists and is declared... yes checking whether wcsftime exists and is declared... yes checking whether wcstod exists and is declared... yes checking whether mbstowcs exists and is declared... yes checking whether wcstombs exists and is declared... yes checking whether wctrans exists and is declared... no checking whether iswblank exists and is declared... no checking whether wctype exists and is declared... no checking whether iswctype exists and is declared.....
2009 Mar 13
7
WINE Compile issue latest development release (1.1.16?)
checking for X... no configure: error: X development files not found. Wine will be built without X support, which probably isn't what you want. You will need to install development packages of Xlib/Xfree86 at the very least. Use the --without-x option if you really want this. Configure failed, aborting install. -_- i keep getting random things when i try to install wine this is the latest.
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
2014 Jan 17
0
Wine release 1.7.11
...slation. Piotr Caban (13): msvcr90: Add _is_exception_typeof implementation. msvcp110: Share the source code with msvcp90. msvcr110: Add __libm_sse2_sqrt_precise implementation. msvcr110: Add __crtTerminateProcess implementation. msvcrt: Handle null mbstr parameter in mbstowcs. msvcp110: Fix streamsize parameter size in spec file. msvcrt/tests: Fix crash in mbstowcs tests. msvcp110: Make locale::facet::Incref and Decref virtual. msvcp110: Add locale::_Init implementation. msvcp110: Add _New_Locimp implementation. msvcp110: Fix basic_s...
2019 Feb 22
3
[PATCH 2/2] Cygwin: implement case-insensitive Unicode user and group name matching
On Wed, 20 Feb 2019 at 23:54, Corinna Vinschen <vinschen at redhat.com> wrote: > The previous revert enabled case-insensitive user names again. This > patch implements the case-insensitive user and group name matching. > To allow Unicode chars, implement the matcher using wchar_t chars in > Cygwin-specific code. Keep the generic code changes as small as possible. > Cygwin:
2008 Sep 10
1
Xen-3.3 Etch amd64 compil error
...r ''...'' before ''wchar_t'' /usr/src/xen-3.3.0/stubdom/newlib-1.16.0/newlib/libc/include/stdlib.h:94: erreur: expected ''='', '','', '';'', ''asm'' or ''__attribute__'' before ''mbstowcs'' ///usr/src/xen-3.3.0/stubdom/newlib-1.16.0/newlib/libc/include/stdlib.h:95: erreur: expected ''='', '','', '';'', ''asm'' or ''__attribute__'' before ''_mbstowcs_r'' /usr/src/xen-3.3.0/stubd...