lsl_archived
lsl_archived copied to clipboard
Locale problem with LSL (de_DE.UTF-8)
We ran into a problem one one Linux-box with the stream name containing
invalid: bad lexical cast: source type value could not be interpreted as target
After some debugging we found that version and created_at contained values with a comma as decimal mark. It turns out that we had a couple of locales on the system, including LC_NUMERIC set as de_DE.UTF-8. At a conversion somewhere along the lines, this caused LSL to use a comma as numerical delimiter and therefore couldn't cast the respective values. We changed the locales to gb_GB.UTF-8, and it appears to work properly.
Note that this problem only occurred with a Qt-project. Scripts compiled with gcc directly didn't show that behavior.
When I find the time, I'll try to look into which lib/function actually uses the system's locale for conversion, but maybe someone else already has an idea?