From: <Paul_Koning@Dell.com>
To: <tromey@redhat.com>
Cc: <mathiaskunter@gmail.com>, <gdb@sourceware.org>
Subject: RE: Using UTF-8 as host charset
Date: Mon, 05 Mar 2012 18:11:00 -0000 [thread overview]
Message-ID: <09787EF419216C41A903FD14EE5506DD03138CBF87@AUSX7MCPC103.AMER.DELL.COM> (raw)
In-Reply-To: <87mx7ux6mf.fsf@fleche.redhat.com>
The issue here is that NetBSD has a fully functional iconv, except that it doesn't include the wchar_t "character set". I think it has something to do with the notion that wchar_t is not the same as ucs-2, at least not in some corner cases. I'm not particularly convinced, especially since GNU libiconv does make that exact equivalence.
paul
-----Original Message-----
From: Tom Tromey [mailto:tromey@redhat.com]
Sent: Monday, March 05, 2012 1:09 PM
To: Koning, Paul
Cc: mathiaskunter@gmail.com; gdb@sourceware.org
Subject: Re: Using UTF-8 as host charset
>>>>> "Paul" == <Paul_Koning@Dell.com> writes:
Paul> While it doesn't use phony iconv, there are some other questions
Paul> that have come up on this in the past. NetBSD (and possibly
Paul> others) have an iconv implementation that doesn't provide the
Paul> "wchar_t" encoding GDB assumes every iconv will have. I remember
Paul> trying to do something about this and running into concerns that
Paul> wchar_t, formally speaking, is not the same as UCS-2 even though
Paul> for practical purposes the two are interchangeable.
I guess NetBSD should use libiconv.
We could in theory write a portable "phony libiconv" that uses the standard C wide/multi-byte conversion functions. But... libiconv already did this, so it seemed simpler to just reuse it rather than try to write our own.
Tom
next prev parent reply other threads:[~2012-03-05 18:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-03 16:34 Mathias Kunter
2012-03-05 16:13 ` Paul_Koning
2012-03-05 18:09 ` Tom Tromey
2012-03-05 18:11 ` Paul_Koning [this message]
2012-03-05 21:04 ` Tom Tromey
2012-03-05 16:41 ` Tom Tromey
2012-03-05 16:44 ` Pedro Alves
2012-03-05 20:51 ` Mathias Kunter
2012-03-05 21:13 ` Tom Tromey
2012-03-05 21:34 ` Mathias Kunter
2012-03-05 21:41 ` Tom Tromey
2012-03-05 22:23 ` Mathias Kunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=09787EF419216C41A903FD14EE5506DD03138CBF87@AUSX7MCPC103.AMER.DELL.COM \
--to=paul_koning@dell.com \
--cc=gdb@sourceware.org \
--cc=mathiaskunter@gmail.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox