mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix "Load/Save to cloudstorage" for non-ASCII user names
On Windows that would fail because stat() doesn't deal well with our utf8 strings. Added new subsurface_stat() portability function to replace stat(). Added Windows implementation of subsurface_stat() using wstat(), with conversion to ut16 of the inputed path. Other platform implementations (linux, android) make use of the normal stat(). Added non ASCII test case in TestGitStorage::testGitStorageLocal() Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
parent
5640a6a839
commit
5ed93a9d9e
6 changed files with 27 additions and 2 deletions
|
@ -64,6 +64,7 @@ void TestGitStorage::testGitStorageLocal_data()
|
|||
// test different path we may encounter (since storage depends on user name)
|
||||
QTest::addColumn<QString>("testDirName");
|
||||
QTest::newRow("ASCII path") << "./gittest";
|
||||
QTest::newRow("Non ASCII path") << "./gittest_éèêôàüäößíñóúäåöø";
|
||||
}
|
||||
|
||||
void TestGitStorage::testGitStorageLocal()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue