Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <417C2310.5030103@familiehaase.de> Date: Sun, 24 Oct 2004 23:48:00 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: Cygwin List Subject: Re: wstring, how? References: <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041023135340 DOT 04d5ed60 AT pop DOT prospeed DOT net> <417ADBA4 DOT 9050005 AT familiehaase DOT de> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041023203617 DOT 0414f4a8 AT pop DOT prospeed DOT net> <417B6A68 DOT 3050905 AT familiehaase DOT de> <417B7BE1 DOT 9040303 AT familiehaase DOT de> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041024164631 DOT 0415f2d0 AT pop DOT prospeed DOT net> In-Reply-To: <6.1.0.6.0.20041024164631.0415f2d0@pop.prospeed.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Larry Hall wrote: > Sorry, I wasn't specific in my reply. 'wchar_t' is referenced in newlib. > 'wstring' is only defined (typedef) in '/usr/include/g++-3/string' but it > is commented out. Like I said though, if you uncomment it (or put the same > definition in the code), everything compiles/links fine. So, on the face > of it, it would appear that using 'wstring', 'wchar_t', and, presumably, > wide-character functions are possible with Cygwin. Am I missing something? There is configure:25389: checking for ISO C99 wchar_t support configure:25399: result: no and configure:25841: checking for XPG2 wchar_t support configure:25851: result: yes configure:25866: checking for enabled wchar_t specializations configure:25868: result: no in the log. The result is: // Define if code specialized for wchar_t should be used. /* #undef _GLIBCXX_USE_WCHAR_T */ These symbols are available in libcygwin: btowc mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcscat wcschr wcscmp wcscoll wcscpy wcscspn wcsncat wcsncmp wcsncpy wcspbrk wcsrchr wcsrtombs wcsspn wcsstr wctob wprintf But these symbols are missing: fgetwc fgetws fputwc fputws fwide fwprintf fwscanf getwc getwchar putwc putwchar swprintf swscanf ungetwc vfwprintf vfwscanf vswprintf vswscanf vwprintf vwscanf wcsftime wcstod wcstof wcstok wcstol wcstoul wcsxfrm wscanf Then there is in the libstdc++ configure: dnl At the moment, only enable wchar_t specializations if all the dnl above support is present. There are quite a lot symbols missing. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/