Bug 164642

Summary: Language info in browser identification includes en-US
Product: [Applications] konqueror Reporter: David Dempster <david.linguist>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Dempster 2008-06-22 08:15:02 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages
OS:                Linux

Everything on my system is set to be in English (en-GB).  If it allows a secondary choice, I throw in Aussie (en-AU) because I live in Australia.  I get rid of anything else.

Here is my browser identification in Konqueror:
Mozilla/5.0 (compatible; Konqueror/4.0; Linux 2.6.24-19-generic; X11; i686; en-GB, en-US, en) KHTML/4.0.80 (like Gecko)

It's probably good to put a generic "en" in, but what on earth is "en-US" doing in there?

Firefox has no such bug:
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9) Gecko/2008061015 Firefox/3.0

Neither does Opera:
Opera/9.50 (X11; Linux i686; U; Linux Mint; en-GB)
Comment 1 David Dempster 2008-07-30 14:39:06 UTC
Still the same behaviour in Konqueror 4.1.00, KDE 4.1.0.

I get identified as:
"Mozilla/5.0 (compatible; Konqueror/4.1; Linux 2.6.24-20-generic; X11; i686; en-GB, en-US, en) KHTML/4.1.0 (like Gecko)"
Comment 2 David Dempster 2008-10-10 08:27:07 UTC
In 4.1.2, it's got worse:

“Mozilla/5.0 (Konqueror/4.1; Linux 2.6.27-4-generic; X11; x86_64; en-US, en-AU, en) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3)”

It's now actually putting “en-US” first.  It should say “en-GB, en-AU”.

It's also saying “KHTML” even when I use Webkit.
Comment 3 David Dempster 2009-11-05 02:42:48 UTC
In 4.3.2, it's been fixed:

“Mozilla/5.0 (compatible; Konqueror/4.3; Linux 2.6.31-14-generic; X11; x86_64; en_GB) KHTML/4.3.2 (like Gecko)”