summaryrefslogtreecommitdiff
path: root/libs/ardour/test
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-18 14:59:20 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-09-19 14:47:52 +1000
commit9192a2e96947e8ebb5e4bff2ad502222d9db65d4 (patch)
tree16a335d3bca0851c1be8f4fae4aaf12455f17d3f /libs/ardour/test
parentaa77c2eb581a1952c48706cb0b74af1d74f27334 (diff)
Add test for PBD::canonical_path on Windows using utf8 strings
This currently fails because the windows only realpath implementation in pbd/pathexpand.cc, which is called from PBD::canonical_path to resolve the path uses Glib::locale_from/to_utf8. As I demonstrated in the testOpenFileUTF8Filename test case Glib::locale_from/to_utf8 are not the correct functions to use for this use case as it converts to/from utf-8 to the locale's current character encoding. On Windows this is most often a single byte encoding such as Windows-1252 and conversion will fail if the path contains any characters that are not in system codepage.
Diffstat (limited to 'libs/ardour/test')
0 files changed, 0 insertions, 0 deletions