Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

18: fix locale issues with printing using std::to_string for floats #19

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

esiqveland
Copy link
Contributor

@esiqveland esiqveland commented Jan 6, 2022

Fixes #18

std::to_string output depends on the locale on the machine it happens to be running on. For floats, this produces invalid output with comma instead of period as a decimal separator, such as 0,3 instead of 0.3.

Copy link
Member

@alexmercerind alexmercerind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had idea from the very start that this was eventually going to break for some becaue of , being used as decimal in some locales. However, I still didn't bother too much in hurry.

I assume this would work, merging. Would revert/fix commit in-case I find this breaking.

Thanks for the contribution 🥳.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linux: set playback rate and set volume not working
2 participants