Use g_rename() instead of ::rename() in Session::cleanup_sources
authorTim Mayberry <mojofunk@gmail.com>
Wed, 14 Sep 2016 11:23:02 +0000 (21:23 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 15 Sep 2016 11:27:55 +0000 (21:27 +1000)
commit36d1d842df5925fe5cbc30083212043fe1877822
tree1e8a18286549002b5bcdffd70d0ed7e3b4ac136c
parentd36c41f128011e139eb7dccee0c7bbe274b8e4e2
Use g_rename() instead of ::rename() in Session::cleanup_sources

The paths are in UTF-8 encoding and ::rename expects paths in the system
codepage encoding so ::rename will fail for any paths that contain characters
that aren't in the system codepage.

This fixes Flush Wastebasket on Windows where paths contain characters that
aren't in the system codepage(usually most non-ascii characters).
libs/ardour/session_state.cc