[DVDnav-discuss] r1200 - trunk/libdvdread/src/dvd_reader.c

KO Myung-Hun komh at chollian.net
Wed Jul 21 05:25:26 CEST 2010



Erik Hovland wrote:
>>> KO Myung-Hun ha scritto:
>>>> You should consider 'a' .. 'z' case as well. Or it would be better to
>>>> use isalpha().
>>>>
>>>
>>> isalpha() is better. Committed
>>
>> Not that I mind, but it's actually wrong.
>> A-Z and a-z and only those are valid drive letters, no matter what
>> the locale is - there is no drive "ä", "å" "ñ" or whatever.
> 
> I am as pedantic as the next guy. But there are two reasons why I think
> isalpha() is better in this instance.
> 1. KO Myung-Hun suggested it and this code is only in the OS/2 porting.
>     They are the ones who even have to live w/ this code.
> 2. isalpha() is way more human readable then the equality operators.
> 

3. anyhow, opening a device other than 'A'..'Z or 'a'..'z', fails.

-- 
KO Myung-Hun

Using Mozilla SeaMonkey 2.0.3
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1GHz with 512 MB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr



More information about the DVDnav-discuss mailing list