<HTML><BODY>I don't know what I need to test. Can you give me peace of code?<br><br><br>Fedor Strizhnev<br>Федор Стрижнёв.<br><br>Аўторак, 17 лютага 2015, 13:47 UTC ад Willem Jan Palenstijn <wjp@usecode.org>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
<div id="">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div>
<base target="_self" href="https://e.mail.ru/">
<div id="style_14241808450000000518_BODY">On Tue, Feb 17, 2015 at 04:06:00PM +0300, Fiodar Strizhniou wrote:<br>
> I create bugreport month ago about bad colours in most scenes in Zvision engine games. I get point to wrong setlocale() settings in some backends. I create and run test app. Nothing works(see screenshot). Also i have read somewhere in Symbian Sdk docs what setlocale doesnt work at Symbian.<br>
<br>
<br>
You should really say things like that directly, instead of having us guess at<br>
what you're trying to do.<br>
<br>
<br>
The main question is: does sscanf work with "%f" for you? And if you set locale<br>
to "C" explicitly?<br>
<br>
<br>
-Willem Jan<br>
<br>
<br>
<br>
> исходное сбщ<br>
> Тема: Re: [Scummvm-devel] setlocale() doesn't work at Symbian<br>
> От: Filippos Karapetis <<a href="/compose?To=bluegr@gmail.com">bluegr@gmail.com</a>><br>
> Дата: 17.02.2015 14.52<br>
> <br>
> You don't use a correct value for the locale<br>
> <br>
> You would want something like:<br>
> setlocale(LC_ALL,"en_GB.ISO-8859-1");<br>
> <br>
> Having said that, check backends/platform/sdl/sdl.cpp, where it does this:<br>
> const Common::String locale = setlocale(LC_ALL, "");<br>
> <br>
> // Restore default C locale to prevent issues with<br>
> // portability of sscanf(), atof(), etc.<br>
> // See bug #3615148<br>
> setlocale(LC_ALL, "C");<br>
> <br>
> Be careful when changing the locale, you need to reset it afterwards (as<br>
> the comment mentions).<br>
> <br>
> This stackoverflow question may be helpful:<br>
> <a href="http://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes" target="_blank">http://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes</a><br>
> <br>
> On Tue, Feb 17, 2015 at 1:08 PM, Fiodar Strizhniou <<a href="/compose?To=fedor_qd@mail.ru">fedor_qd@mail.ru</a>> wrote:<br>
> <br>
> > 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<br>
> > setlocale() used?<br>
> > Always yours, Strizhniou Fedor.<br>
> > С уважением, Стрижнёв Фёдор.<br>
> ><br>
> <br>
> <br>
> -- <br>
> "Experience is the name every one gives to their mistakes" - Oscar Wilde<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>
> _______________________________________________<br>
> Scummvm-devel mailing list<br>
> <a href="/compose?To=Scummvm%2ddevel@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>
<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="/compose?To=Scummvm%2ddevel@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>
</div>
<base target="_self" href="https://e.mail.ru/">
</div>
</div>
</div>
</blockquote>
<br></BODY></HTML>