Everyone is Ukrainian
nemo (145) 2554 posts |
The RISC OS model of Countries, Alphabets, Keyboards and Territories is outdated, ambiguous, neglected and broken. Needs to be taken out and shot (by which I mean maintained for compatibility reasons but fixed with a new one). As a half-hearted attempt to begin to change things, Service_International gained reason code 9 – Convert Country Number to ISO 3166-1 Code. It’s not much used. Unfortunately, whoever did this didn’t look very closely at ISO InternationalKeyboard should not be reporting GB as Ukrainian. Щасливого Великодня! |
Kevin (224) 322 posts |
For getting country and their codes I’ve found a web site where you can download a JSON file of it. |
Chris Hall (132) 3558 posts |
I think most people will understand ‘uk’ as meaning United Kingdom. Don’t worry about trivia! |
nemo (145) 2554 posts |
I couldn’t give a monkeys what “most people” think. International standards are international standards. This isn’t about people understanding, it’s about interoperability of software systems. But since you’re familiar with all the pertinent standards can I leave it to you to inform the British Government that they’ve got it wrong ? |
Steve Pampling (1551) 8172 posts |
I think you have used too many words there and you may well find that whoever did it didn’t look at ISO 3166-1. BTW. You might want to edit to change the 3316-1 entries as that refers to Assembly tools for screws and nuts although that might be applicable round here. |
Dave Higton (1515) 3534 posts |
The key phrase on my passport is “United Kingdom of Great Britain and Northern Ireland”. The UK (in British terms) is not the same as Great Britain. |
Rick Murray (539) 13850 posts |
Hear hear.
I don’t know about you, but my StrongHelp file says it’s ISO 3166:1 alpha 2, and there the official country code for Britain is “gb”, with “uk” being exceptionally reserved.
Uhhh…. you might have noted that while the three character code for Ukraine is UKR, the two character is UA and it was allocated in 1974… perhaps due to the UK using UK instead of GB (which is its real allocation).
That document lists Ukraine as UA, UKR, and 804. As for the call returning UK in preference to the technically correct GB, it’s clearly noted in the documentation: The UK uses ‘uk’ in preference to its allocated ‘gb’ abbreviation.
Language tag is irrelevant. The language I’m speaking is “en”. If you want to shoehorn in some sort of British reference, then specifically it is “en-GB”1, but however you look at it, names of languages are not necessarily names of countries. 1 Even more specifically, en-GB with a semi-north-Hampshire, semi-posh-git, semi-midat accent. I believe the tag for that is “en-GB-wtf”. |
Rick Murray (539) 13850 posts |
The key phrase on my passport is “European Union”. |
nemo (145) 2554 posts |
Steve said
If I’m Rimmer quoting a Space Corps Directive, that makes you Kryten. Dave said
Rick nearly paid attention until
Whereas I clearly wrote
Which it is.
Irrelevant – that’s a different… domain. (see what I did there)
Indeed, and I’m working towards a system where both will be relevant, so we can’t have half of it being wrong just because of what somebody thinks it says on their passport… See keyboard thread elsewhere. |
Rick Murray (539) 13850 posts |
I don’t think I’m the one failing to pay attention…
Oh, I don’t disagree. “uk” is indeed the language tag for Ukrainian. However the Service Call that you’re upset about returns country codes. And while it probably ought to return “gb” for country #1, it returns “uk” which is an allocated and in-use alias for the United Kingdom. |
nemo (145) 2554 posts |
Rick, I’m not at all confused. “Country codes” are not country codes. They’re sometimes language codes, and sometimes something else entirely. The associated country names have often been used for internationalisation. Fortunately, I don’t think anyone has yet used the ISO codes for that purpose, but it is important to ensure that this is fixed before anyone does in good faith. I have proposed that the IANA LSR codes be used for internationalisation, language preference, keyboard selection etc, to get away from the ambiguity baked into the “Country” codes. This will involve using the correct kind of code in the correct place, BUT, for compatibility one will need to cope with existing usage.
Please re-read what I actually wrote:
Can you see that I am not confused about which standard is which? Can you see that I am specifying exactly which standard I will be employing? You cannot invoke (misplaced) pedantry over the exact standard being referred to, and then ignore the fact that it is that standard that the code is not compliant with. The fact that somebody wrote a comment in a source file does not excuse the misuse (KB I presume). So far I’ve not read one reason why the code should not be corrected. Is there a reason, or are we in the realms of veneration of the ancients? |
Rick Murray (539) 13850 posts |
I’m going to give up here, for two reasons. Firstly, UK is “exceptionally allocated” to Britain in ISO 3166-1, and it is UKrainain in ISO 639. This is fact. I would imagine that there is some method of dealing with this (I note that language specifiers are language-country (en-GB, fr-CA, etc). So maybe it’s just a matter of accepting “uk” on the left, not the right? Secondly, and more importantly… I don’t actually care. Until you raised the issue, I wasn’t even aware that such a ServiceCall existed… My only involvement is to point out that the call, as defined in the API, returns “uk” (country code) where UK is not Ukrainian (language code). ;-)
The (somewhat tenuous) reason, given as a comment in the code, is that the UK uses UK and not GB. Funny. I could have sworn that British English was en-GB! I’d suggest filing it as a bug and getting it changed to GB in the nightly beta and see if anything breaks (and if so, why it is relying on an unusual response). |
Rick Murray (539) 13850 posts |
I’ll even make it really easy – it’s here: https://www.riscosopen.org/viewer/view/apache/RiscOS/Sources/Internat/Inter/s/InterBody?rev=4.22#l1307 |
Steve Pampling (1551) 8172 posts |
Irritating but amusing pedant with few friends and zero social life? Sometimes given to self deprecation. Yep, that would be me.
Echoing what Rick said I don’t think many people “look under the bonnet”1 and are more concerned with how fast does it go (and what paint job it has apparently2) so anyone that can make it work
:) 1 That translates as “look under the hood” if you’re in the USA 2 Green directory icons, blue directory icons, some other colour… 3 In an effort to be more inclusive I think we should offer associate membership (at least) to those not born in Yorkshire 4 No stressing on this, Yorkies are happy enough to deal with RP and other dialects. |
Rick Murray (539) 13850 posts |
Hash-tag-me-too. Unfortunately, French people can be extremely literal at times so self-deprecation and sarcasm can sometimes be responded to with completely serious straight answers… David Feugey → didn’t they ever sub/dub Monty Python for you guys?
Yorkshire? Yorkshire? That’s… that’s… that’s north of the Watford Gap. It’s a big blank space on the map marked Actually, I was born further north – Scotland. A whole different country. Replies…probably ought to be sent on a postcard to Aldershot. |