Re: [hatari-devel] GEMDOS filename handling |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: "hatari-devel@xxxxxxxxxxxxxxxxxxx" <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [hatari-devel] GEMDOS filename handling
- From: Max Böhm <mboehm3@xxxxxxxxx>
- Date: Sat, 30 Aug 2014 14:04:07 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=FR156MsF9vctFdnNZqq046bB08MEtS7FHw5ySJVa7Z0=; b=o0bhQyOMBPTlX5U1k6zaNMTM7S+OBKZD93v0Bx5Gcl/YUc2xFSiejdEgdoZeNRo72G PuUaoRM0itC/+m767KTqaKSSVDSW54qgo4pwkcsRNNu1p1DXLVfcZa7r4lVByrY25Il3 apRpFJ0T3Sozgso8TuU3yHaiqKB+fXW0qkmUkBO5e3chXCzdBLsF4UhBYjhUsLVlLAIB wOt9MOGG+v5ob30p9qhh0LqsKg71CVCye4iO+lVpq4bxSHhoNcsJxL4gVYHVcxsSUwz7 L1mPog4pUdFwUcU4LbMK+4r7IFM0i8JNAeV0d63rxt+e3LGqvHi8fHDgztkQ7cgSG05b SouQ==
Hi,
2014-08-29 22:58 GMT+02:00 Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> On lauantai 16 elokuu 2014, Max Böhm wrote:
>> > I'm going to look into having correct TOS error codes /
>> > mapping for invalid characters and doing conversions in
>> > fewer places (higher in call hierarchy).
>>
>> ok. Some comments for consideration:
>>
>> 1. The OSX UTF-8 normalization calls (Str_DecomposedToPrecomposedUtf8)
>> may be wrapped by #ifdefs __MACOSX__.
>
> Is there some reason why similar UTF-8 strings couldn't be encountered
> on other operation systems?
The only system I know which uses the decomposed form of UTF-8 is OSX.
It won't hurt to call the Str_DecomposedToPrecomposedUtf8() function also
for other systems which use UTF-8, but if the string encoding is not UTF-8
then the function should not be called, as it replaces certain UTF-8 encoded
sequences of letter + diacritical mark by its UTF-8 encoded precomposed
unicode character representation, see
http://en.wikipedia.org/wiki/Combining_character.
- Max