<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<font size="2"><span style="font-size:11pt">> How about returning something like<br>
> GetLocaleInfo(GetUserDefaultLCID(), LOCALE_ICOUNTRY|LOCALE_RETURN_NUMBER)?<br>
<br>
LOCALE_ICOUNTRY is the phone prefix, but your idea is sound.<br>
I tried LOCALE_IGEOID too but couldn't figure out how to implement in Wine.<br>
(Hint: simply adding those to the .nls files was not enough.)<br>
<br>
What I found works is asking for the country code (LOCALE_SISO3166CTRYNAME)<br>
(what a mouthful) and matching it to the GeoID (easy).<br>
<br>
Working with letter codes is actually better, too, because Microsoft is moving<br>
away from GeoIDs and into "geonames" (two-letter codes, like Linux and Android)<br>
and we can just do the matching in the new procs that support geonames.<br>
In fact, that's exactly what Microsoft is doing! Useful behavior to replicate.<br>
<br>
Now, what I really, really need to know is how to let anybody opt-out,<br>
because not every country has a locale in Linux (or Wine, for that matter) x.x</span></font>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
(sorry for sending you this message before without CC'ing the mailing list, and for having to send it again)<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Dmitry Timoshkov <dmitry.timoshkov@gmail.com> em nome de Dmitry Timoshkov <dmitry@baikal.ru><br>
<b>Enviado:</b> 14 de outubro de 2019 05:51<br>
<b>Para:</b> Jo�o Diogo Ferreira <devilj@outlook.pt><br>
<b>Cc:</b> wine-devel@winehq.org <wine-devel@winehq.org><br>
<b>Assunto:</b> Re: [RFC] Automatically set GeoID on process startup</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Jo�o Diogo Ferreira <devilj@outlook.pt> wrote:<br>
<br>
> ... basically like we already do for locale.<br>
> <br>
> Hello all. So for my first contribution to Wine I've been wanting to<br>
> tackle this issue, reported and suggested in bug #46196. I'd like to hear<br>
> everyone's opinions on it and also have one question answered.<br>
> <br>
> The bug: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.winehq.org%2Fshow_bug.cgi%3Fid%3D46196&amp;data=02%7C01%7C%7C34225219423b4e88a13808d750623880%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637066255086758126&amp;sdata=0RAB%2BGEY1JSGpkH1jsErkTnxbidWfVd9y7KU8259mkg%3D&amp;reserved=0">
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.winehq.org%2Fshow_bug.cgi%3Fid%3D46196&amp;data=02%7C01%7C%7C34225219423b4e88a13808d750623880%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637066255086758126&amp;sdata=0RAB%2BGEY1JSGpkH1jsErkTnxbidWfVd9y7KU8259mkg%3D&amp;reserved=0</a><br>
<br>
How about returning something like<br>
GetLocaleInfo(GetUserDefaultLCID(), LOCALE_ICOUNTRY|LOCALE_RETURN_NUMBER)?<br>
<br>
-- <br>
Dmitry.<br>
</div>
</span></font></div>
</body>
</html>