wesnoth-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-patches] [patch #4400] Mac OS X HFS filenames precomposition


From: Laurent Wacrenier
Subject: [Wesnoth-patches] [patch #4400] Mac OS X HFS filenames precomposition
Date: Mon, 5 Sep 2005 16:52:04 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4400>

                 Summary: Mac OS X HFS filenames precomposition
                 Project: Battle for Wesnoth
            Submitted by: lwa
            Submitted on: lun 05.09.2005 à 16:52
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

On Mac OS X, file names are stored in decomposed form.
When a game is saved and containt accents or other decomposable characters,
Mac OS X HFS fileystem decompose the filename and when it is read again, the
decomposed form is displayed. As the filename is taken from the localized
scenario name, you may have garbage into saved game list.

For example, if you save a game named "L'héritier" (in french) and want to
read again,
"L'he'ritier" will be displayed, which is very poor typo in french. It may be
worst for languages who have more accents.

The best fix if to display unicode modifier correctly, but it sound that
SDL_ttf is unable to. The attached patch work around the readdir() system
call to precompose the filename. The used routines should be avaiable since
Mac OS X 10.2.

See http://developer.apple.com/qa/qa2001/qa1235.html






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: lun 05.09.2005 à 16:52  Name: wesnoth-fs.patch  Size: 2,17Ko   By: lwa
Patch against 2005-09-05 CVS version
<http://savannah.nongnu.org/patch/download.php?item_id=4400&item_file_id=5148>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4400>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]