Re: [PATCH 00/22] Refactor to accept NUL in commit messages
- From
Štěpán Němec <stepnem@gmail.com>
- Date
- Oct 24, 2011, 11:09 UTC
- Message-ID
- <87wrbu4peo.fsf@gmail.com>
- In-Reply-To
- <CACsJy8AsfQnS3L1fabzB-z7BdH=jvB=XNnmP2RZu0qp7C1uGYQ@mail.gmail.com>
On Mon, 24 Oct 2011 07:10:08 +0200 Nguyen Thai Ngoc Duy wrote:
> This is argument for the sake of argument because I don't use utf-16 > and do not care much. UTF-16 can have more code points and some may > prefer utf-16 to utf-8.
I suspect this is really tangential to this thread, but I can't make much sense of that last sentence -- if you meant that UTF-16 is somehow more apt at encoding Unicode code points than UTF-8, then that's not the case. Both can represent all Unicode characters. If anything, things are _more_, not less complicated in UTF-16, which apart from the NUL and endianness complications has to jump through the "surrogate pairs" hoop for code points bigger than U+FFFF (so you'll actually find many apps with buggy UTF-16 implementation which break for those code points, unlike when using UTF-8).
-- Štěpán