From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe66ebb10f69d726,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.231 with SMTP id pv7mr3642815pbb.8.1330120914533; Fri, 24 Feb 2012 14:01:54 -0800 (PST) Path: h9ni5201pbe.0!nntp.google.com!news1.google.com!postnews.google.com!b18g2000vbz.googlegroups.com!not-for-mail From: Erich Newsgroups: comp.lang.ada Subject: Convert wide_string to string (as the same byte array) Date: Fri, 24 Feb 2012 14:01:54 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 85.242.65.3 Mime-Version: 1.0 X-Trace: posting.google.com 1330120914 26035 127.0.0.1 (24 Feb 2012 22:01:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 24 Feb 2012 22:01:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b18g2000vbz.googlegroups.com; posting-host=85.242.65.3; posting-account=nd46uAkAAAB2IU3eJoKQE6q_ACEyvPP_ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALENKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-02-24T14:01:54-08:00 List-Id: A newbie question: I need to convert a wide_string to a (platform/ endian independent) string that represents all the bytes of the wide_string. How do you do that? Just to make this clear, I'm not looking for a lossy conversion based on mapping wide_characters to characters, but for a lossless conversion. The reason is that I have an older package that takes a key as string and need to use it with wide_strings as keys.