Closed DavisVaughan closed 1 year ago
@HowardHinnant I just wanted to followup and see if you had any thoughts about this issue. Normally I'd never followup like this, but I borked the issue when I opened it originally and that may have caused you to not see it.
Sorry, just been really busy elsewhere.
No problem at all!
Hi Howard,
I have a Windows user who is having issues with
set_install()
(full info here). The issue is that they unfortunately have an accent mark in their root file path, which I can't have control over. They end up with an error like this:I think the issue is that
set_install()
only supportsstd::string
, but reallystd::wstring
is needed here? For example, I can sort of reproduce this with the following on a Windows computer (compiling with these defines):The
date::get_tzdb()
call will throw the "Timezone database not found" error (notice the accent in the "problem" folder)I think I really need to do something like:
but I can't pass that to
set_install()
.If you do try and support this, I've also been told that
file_exists()
should use_waccess()
rather than_access()
for those wide strings. https://github.com/HowardHinnant/date/blob/d57d764707050fa85fc3a6f824c666ed4550b1b4/src/tz.cpp#L2839