<div dir="ltr"><div>I used the following code to retrieve the 
LOCALE_FONTSIGNATURE value for Sinhala and print it to a text file (I used 
GetLocaleInfoA because MinGW was returning an error saying that 
GetLocaleInfoEx could not be found). I was able to retrieve the LOCALE_SSCRIPTS value on Windows using this method as well by replacing LOCALE_FONTSIGNATURE with LOCALE_SSCRIPTS in GetLocaleInfoA:</div><div><br></div><div>#include <windows.h><br>#include <winnls.h><br>#include <fstream><br><br>using namespace std;<br><br>int main()<br>{<br>    ofstream ofs ("locale.txt", std::ofstream::out);<br>    char s[100];<br>    GetLocaleInfoA(MAKELCID(MAKELANGID(LANG_SINHALESE, SUBLANG_SINHALESE_SRI_LANKA), SORT_DEFAULT), LOCALE_FONTSIGNATURE, s, 100);<br>    ofs << s << endl;<br>    ofs.close();<br>}</div><div><br></div><div>I then used hexdump to get the following from the output file:</div><div><br></div><div>0000000 0a0d<br>0000002</div><div><br></div><div>How should this be converted to the format used in the NLS files?</div></div>