Comment 8 for bug 1447504

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: [system settings] Dialer-app: Wrong number is shown in call history

I made a mistake in my previous comment. When I said that formatting of a phone number "should not depend on what your locale setting happened to be when you dialled it, and especially not on what your locale setting happened to be at the moment you happened to look at the call history", I think that's true for international numbers: they should follow the E.123 standard regardless. But it is not true for domestic numbers: they differ in grouping and separators.

The problem here seems to be that the Chinese number 18812345678 is being displayed as if it was an North American (NANP) number, merely because Wenfang is using the American locale. So the "1" is wrongly interpreted as North America's optional trunk code and dropped, the "881" is wrongly interpreted as a North American area code and bracketed, and the rest is wrongly displayed using the North American "-" separator. Result: (881) 234-5678.

So, I guess what the call history needs to do is to remember what country you were in for each domestic number you dial, and format it following the locale for that country.