Xojo.Core.Locale

I’m writing an app that may need to work with multiple currencies. I’m using Xojo.Core.Locale to format the currency after retrieving a country code.
try
loc = new Xojo.Core.Locale(vars(0).ToText)
catch e as RuntimeException
msgText.Text = getMessage(60, vars)
Return False
end try
If vars(0) = “en-US” everything works as I would expect. The problem is, it always works.
I expected vars(0) = “xx-XX” to raise an exception that I could trap, doesn’t happen.
Am I doing something wrong, please?

I’m on macOS running Sierra and Xojo 2017v1.
Thanks
Jack

Could be a bug, the docs say that it should raise an exception:
http://developer.xojo.com/xojo-core-locale

Ok, thanks. I’ve submitted a bug report and attached a sample app that reproduces the problem.

Jack