From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30087 invoked by alias); 22 Jul 2002 07:45:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30080 invoked from network); 22 Jul 2002 07:45:22 -0000 Received: from unknown (HELO web9101.mail.yahoo.com) (216.136.128.238) by sources.redhat.com with SMTP; 22 Jul 2002 07:45:22 -0000 Message-ID: <20020722074522.94614.qmail@web9101.mail.yahoo.com> Received: from [134.134.136.2] by web9101.mail.yahoo.com via HTTP; Mon, 22 Jul 2002 00:45:22 PDT Date: Mon, 22 Jul 2002 00:45:00 -0000 From: Aroon Natraj Subject: i18n , wide character issue with gcc/g++ To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00217.txt.bz2 I have a problem with compiling with wide-characters on linux. using linux redhat7.2, with gcc, g++ library version 2.96. problem 1: I find that the wstring support in STL is commented out. So i uncommented it and could use wstring. but there r issues with it, for e.g i'm unable to use wstring::c_str() function, the function returns "" instaed of empty sting. But for wide char it needs to return L"". problem 2: Even if i include and i'm not able to compile program with wide-character functions like swprintf, wprintf etc. The compiler complains saying undeclared identifier. SO I do my own declaration of swprintf and wprintf, and then call them in main func [trial prog]. problem 3: With "gcc" the program compiles, links and runs succesfully. But with "g++" the program compiles, links --- BUT on running gives a "Segmentation Fault". Why is wstring commented out and how can we remedy that ? Why does the compiler complain regarding swprintf, wprintf etc even after including wchar.h ? Why does the g++ built program crash, when the gcc program runs fine [after declaring my own swprintf etc] ? HOW do we use wide string on LINUX? Some solutions for the above problem would be just great as i'm not aware how to turn on the wchar support for g++ on linux. Any hints on how to proceed would be welcome. regards Aroon __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com