Using std::locale() is forcing user to install "en_US.utf-8" in system

Hi,
The usage of std::locale(“en_US.utf-8”) in

to verify the date in a metadata is forcing the user to install locale “en_US.utf-8” which seems kind of intrusive (it is for example not a part of a standard ubuntu:20.04 docker image) and is not what locale is meant to be used for i.e. the application should adapt to the locales in the system and not the other way around.

Isn’t there a better way to do this without using locales? Here are some ideas from Stack Overflow: C++ check if a date is valid - Stack Overflow

/Andreas

Hi @AndreasN, totally, this issue has been addressed in the upcoming release 0.14.0 of the SDK. In which you will no longer need to have the “en_US.utf-8” locale on your machine.

1 Like

That sounds great!
/Andreas