Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable digit substitution

How can I disable the digit substitution (for example for Hindi numerals instead of Arabic ones) for my application (native c++) completely?

I want all the numbers displayed with 0123 instead of ٠١٢٣

There is an option in localization options in windows, but I don't want to change that for the user. Only for my app.

Thank you!

like image 524
kcode Avatar asked Jun 11 '10 08:06

kcode


People also ask

What does digit symbol substitution test?

Digit symbol substitution test (DSST) is a neuropsychological test sensitive to brain damage, dementia, age and depression. The test is not sensitive to the location of brain-damage (except for damage comprising part of the visual field). It consists of (e.g. nine) digit-symbol pairs (e.g. 1/-,2/┴ ...

What is letter digit substitution?

The Letter Digit Substitution Test (LDST) is based on earlier developed substitution tests (e.g., Digit Symbol Substitution Test) but uses over-learned signs instead of the symbols used in other substitution tests.


1 Answers

Slightly confused by you saying native C++ and still having a WinForms tag...

Assuming that it's a native C++ app without any .Net, I'd look at the SetThreadLocale function as described here.

like image 167
Hans Olsson Avatar answered Oct 22 '22 00:10

Hans Olsson