[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Checking international filenames
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-11-16 14:00:39
Message-ID: 200811161500.48592.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Michael Leupold wrote:
>Hi,
>
>I want to allow kwallet users to specify non-ascii filenames for their
> wallets and wondered if using
> QTextCodec::codecForLocale()->canEncode(filename) is the correct way to
> check if a filename can be properly used (of course with additional
> checks for unsupported characters)?
>
>Without doing this check I figured I might end up with "?????" filenames
> if entering eg. cyrillic characters on a non-UTF locale.

All file names are valid. Do not try to verify it.

We do not support KDE on any locale that is not UTF-8. Therefore, anything 
that can be typed, goes.

The problem is only on filesystems with arbitrary limitations, like the 
Windows ones. You'll simply get an error trying to open the file.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic