[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99
From: |
Samuel Thibault |
Subject: |
Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99 |
Date: |
Fri, 28 Oct 2016 09:40:39 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Markus Armbruster, on Fri 28 Oct 2016 08:51:20 +0200, wrote:
> Samuel Thibault <address@hidden> writes:
>
> > Peter Maydell, on Thu 27 Oct 2016 17:52:17 +0100, wrote:
> >> http://www.thecodingforums.com/threads/wchar_t-is-useless.806149/#post-4398211
> >
> > UURrgll... So we can't use L'\u23bd' on such systems, it would just not
> > work either, we have to use iconv to get these right...
>
> I guess we can if they actually bother to conform to C99. 6.4.3
> Universal character names:
>
> The universal character name \Unnnnnnnn designates the character
> whose eight-digit short identifier (as specified by ISO/IEC 10646)
> is nnnnnnnn. Similarly, the universal character name \unnnn
> designates the character whose four-digit short identifier is nnnn
> (and whose eight-digit short identifier is 0000nnnn).
>
> Note that it doesn't say here that L'\u23bd' should be equal to 0x23bd.
I know, but as discussed in the thread, that could only work if gcc
embeds something like calls to nl_langinfo and iconv to properly convert
from the unicode value to the proper wchar_t according to the locale. I
wouldn't be surprised that they don't.
Samuel
- [Qemu-devel] [PATCH] curses: build with -std=gnu99, Gerd Hoffmann, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Peter Maydell, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Gerd Hoffmann, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Samuel Thibault, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Peter Maydell, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Samuel Thibault, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Peter Maydell, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Samuel Thibault, 2016/10/27
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Markus Armbruster, 2016/10/28
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99,
Samuel Thibault <=
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Markus Armbruster, 2016/10/28
- Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99, Gerd Hoffmann, 2016/10/28