Merge lp:~mterry/mir/fix-turkish into lp:mir
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2121 |
Proposed branch: | lp:~mterry/mir/fix-turkish |
Merge into: | lp:mir |
Diff against target: |
20 lines (+2/-1) 1 file modified
src/platform/options/program_option.cpp (+2/-1) |
To merge this branch: | bzr merge lp:~mterry/mir/fix-turkish |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
Alberto Aguirre (community) | Approve | ||
Cemil Azizoglu (community) | Approve | ||
Kevin DuBois (community) | Approve | ||
Review via email: mp+243722@code.launchpad.net |
Commit message
Fix parsing environment arguments in the Turkish locale by calling tolower() with the standard C locale. (LP: #1398984)
In the Turkish locale, tolower('I') gives you back 'I'. This is often unexpected and a common 'gotcha' when comparing the results to a hardcoded string. One easy fix is to use the C locale for case conversions when you are only really interested in the normal ASCII set.
Description of the change
Fix parsing environment arguments in the Turkish locale by calling tolower() with the standard C locale.
In the Turkish locale, tolower('I') gives you back 'I'. This is often unexpected and a common 'gotcha' when comparing the results to a hardcoded string. One easy fix is to use the C locale for case conversions when you are only really interested in the normal ASCII set.
== Checklist ==
Did you test your feature/code change/bug fix ? what device(s) ?
- No, I tested locally that it gave the correct results in Turkish, but am waiting for jenkins to build debs for me to test on my device.
Did you break mir server API or ABI and have the relevant bumps to .so and debian docs been made ?
- NA
Did you break mir client API or ABI and have you followed up with the known clients & announced on mir-devel mailing list ?
- NA
okay by me, although I don't know anything about Turkish... Cemil? :)