<div dir="ltr">You don't use a correct value for the locale<div><br></div><div>You would want something like:</div><div>setlocale(LC_ALL,"en_GB.ISO-8859-1");<br></div><div><br></div><div>Having said that, check backends/platform/sdl/sdl.cpp, where it does this:</div><div><div><span class="" style="white-space:pre">  </span>const Common::String locale = setlocale(LC_ALL, "");</div><div><br></div><div><span class="" style="white-space:pre">    </span>// Restore default C locale to prevent issues with</div><div><span class="" style="white-space:pre"> </span>// portability of sscanf(), atof(), etc.</div><div><span class="" style="white-space:pre">   </span>// See bug #3615148</div><div><span class="" style="white-space:pre">        </span>setlocale(LC_ALL, "C");</div></div><div><br></div><div>Be careful when changing the locale, you need to reset it afterwards (as the comment mentions).</div><div><br></div><div>This stackoverflow question may be helpful:</div><div><a href="http://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes">http://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 1:08 PM, Fiodar Strizhniou <span dir="ltr"><<a href="mailto:fedor_qd@mail.ru" target="_blank">fedor_qd@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I write simple application and run on phone:<br>
  printf("Locale is: %s\n", setlocale(LC_ALL, "en_GB"));<br>
Locale is NULL<br>
Which parts (decimal separators, etc) should be set? Which values from setlocale() used?<br>
Always yours, Strizhniou Fedor.<br>
С уважением, Стрижнёв Фёдор.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server<br>
from Actuate! Instantly Supercharge Your Business Reports and Dashboards<br>
with Interactivity, Sharing, Native Excel Exports, App Integration & more<br>
Get technology previously reserved for billion-dollar corporations, FREE<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">"Experience is the name every one gives to their mistakes" - Oscar Wilde </div>
</div>