Re: libc und UTF-8

Bernhard Walle <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
* Stefan Hundhammer [10.02.2005 15:41]:
> On Thursday 10 February 2005 14:49, Bernhard Walle wrote:
> 
>>Wie sieht ihr das?
> 
> ....
> 
>>2. Im Programm wchar_t verwenden und in C++ std::wstring. Scheint wohl
>>   das einzig halbwegs vernÃŒnftige zu sein, da dann wprintf() usw.
>>   wieder funktioniert.
> 
> So. Mit allem anderen wirst Du nur langsam aber sicher wahnsinnig. ;-)

Hm, und C++?

  #include <iostream>
  #include <iomanip>
  #include <string>

  using std::wcin;
  using std::endl;
  using std::wcout;
  using std::string;

  int main(int, char**)
  {
        wstring s;
        getline(wcin, s);
        wcout << s << endl;

        return 0;
  }

funktioniert schonmal nicht um Umlauten. Und in Google habe ich auch
absolut nichts brauchbares dazu gefunden. :(



Gruß,
Bernhard

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfÃŒgbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.