Horde utils has a great function for loading data from disk, but it has problems if the path, where content directory is located, contains non ANSI characters (for example, cyrillic characters). The problem is in the generated "filename" string, that is sent to the ifstream. It seems that this string is always using some standard charset and not the system default one. I made a small patch that fixes this problem by converting the "filename" string to the system's default charset.
Attachments: |
File comment: This patch adds support for reading files that contain non ANSI characters in its path
HordeUtils_loccharset_support.patch [1.18 KiB]
Downloaded 867 times
|
|