Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Replace boost::locale with std::locale #276

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

tomaz82
Copy link
Collaborator

@tomaz82 tomaz82 commented Oct 30, 2017

This mimics pretty close what boost::locale does, set everything to use the hosts locale, except for numerics which need to always handle dot as decimal point and not comma, else the xml parser fails. And this is close to what boost::locale does.

The benefits? Faster compile times, smaller executable and one less dependency.

@hex007
Copy link

hex007 commented Oct 30, 2017

@tomaz82 Is that all that Boost is being used for?

@tomaz82
Copy link
Collaborator Author

tomaz82 commented Oct 30, 2017

@hex007 no, but that is the only line of code that requires boost::locale, which is one of few parts of boost that isn't header only and thus needs a compiled library.

@joolswills
Copy link
Member

If we ever need to switch to multi language, would this have any impact? Is it possible we may need to use more of the boost library functionality for example.

@tomaz82
Copy link
Collaborator Author

tomaz82 commented Oct 30, 2017

@joolswills I personally would not use boost::locale for such a thing, I personally would probably look into GNU gettext ( https://www.gnu.org/software/gettext ) if I were to code multi-langual support.

@joolswills
Copy link
Member

Yep. We would use gettext - but as I am unfamiliar with boost, I was wondering if there might be something else we might need. NP. Will merge.

@joolswills joolswills merged commit 92671bc into RetroPie:master Oct 30, 2017
@tomaz82 tomaz82 deleted the replaceBoostLocale branch October 30, 2017 19:35
lubosz pushed a commit to lubosz/EmulationStation that referenced this pull request Feb 29, 2020
Gridview : text, marquee, favorite & overlay can now be zOrdered
Yaoh pushed a commit to Yaoh/EmulationStation that referenced this pull request Jul 13, 2020
[Suggestion] Replace boost::locale with std::locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants