mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 03:49:12 +00:00
(svn r8821) -Regression: Unable to browse directories on *nix if the filesystem is not in UTF-8 charset and special characters are used. The string passed to opendir() which is UTF-8 was not parsed back to the filesystem format. Use a wrapper called ttd_opendir() instead of redefining opendir itself.
This commit is contained in:
@@ -1164,7 +1164,7 @@ static int GetLanguageList(char **languages, int max)
|
||||
struct dirent *dirent;
|
||||
int num = 0;
|
||||
|
||||
dir = opendir(_paths.lang_dir);
|
||||
dir = ttd_opendir(_paths.lang_dir);
|
||||
if (dir != NULL) {
|
||||
while ((dirent = readdir(dir)) != NULL) {
|
||||
const char *d_name = FS2OTTD(dirent->d_name);
|
||||
|
Reference in New Issue
Block a user