Closed tgotic closed 1 year ago
Could you please explain the intention of this commit and what kind of problems it addresses?
The problem with such approach is that it breaks library's API backward compatibility
I'm loading elf file with unicode (UTF-16) name. So I need function that accepts wstring.
There are two possibilities:
new load function bool load(const std::wstring& file_name)
or template <typename T> bool load( const std::basic_string<T>& file_name )
.
Maybe first option would be better?
Yes, the first option with explicit type would be better. But, then, stream.open()
would require casting to const char* s
anyhow. Such casting can be done at a caller level.
I guess, UTF-8 file name conversion should be used by the caller
I'm closing this PR. If you have more information regarding it, please feel free to reopen.
Enable loading of wide char file names.