Re: Is “fr, en; q=0.3” a valid Accept-Language value?

Julian Reschke <julian.reschke@gmx.de> Wed, 19 October 2016 06:37 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D0A12129532 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 23:37:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.332
X-Spam-Level:
X-Spam-Status: No, score=-7.332 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T1KK3INqp4Jd for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Oct 2016 23:37:20 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5F36F129533 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 18 Oct 2016 23:37:20 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bwkQv-0001Rl-LS for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Oct 2016 06:33:01 +0000
Resent-Date: Wed, 19 Oct 2016 06:33:01 +0000
Resent-Message-Id: <E1bwkQv-0001Rl-LS@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bwkQq-0001Nj-Gb for ietf-http-wg@listhub.w3.org; Wed, 19 Oct 2016 06:32:56 +0000
Received: from mout.gmx.net ([212.227.15.18]) by maggie.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bwkQb-0007jT-Fg for ietf-http-wg@w3.org; Wed, 19 Oct 2016 06:32:55 +0000
Received: from [192.168.178.20] ([93.217.104.58]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MUZG7-1cMQ8c01ch-00RICj; Wed, 19 Oct 2016 08:32:13 +0200
To: Samuel Williams <space.ship.traveller@gmail.com>, ietf-http-wg@w3.org
References: <CAHkN8V9RyAVprdWT2ZRDfDyCc+aj7Q6iJdGRr8N2m-qzEis7Kw@mail.gmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <7135c8b0-9f02-04bb-5649-dbab1ba6313c@gmx.de>
Date: Wed, 19 Oct 2016 08:32:12 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <CAHkN8V9RyAVprdWT2ZRDfDyCc+aj7Q6iJdGRr8N2m-qzEis7Kw@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:4tKCsFiGeUmrIP4l+S7cc9EZudm6sayO0vx2EhqyUiqzm9T6LDw BOxkU1ul7pYzH2zzFPXWaZWSHmbUZbeQpqlnJHaI0tNMVG918mcVJfqTgBCfWoF6S0dByp2 OtIvDghTT9IGfzkAyd+OcJcvtx2NgFfwwNnb1Fptpzj1Bvy1cIX9fg9rRjcGOZYh5jL0P4o XwVREBvqfcBxHSh71+bLA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:21wVhA7f55w=:8JrLBBlqRUaZtc1g6wrUEx juZ5Fao0sgZm+4z4xq27uTwHWAHV4wyD88qB485P4Wl1uJT2taMhE4L8hlkT4MXxaUk22DboH Br2f72bWPyBGWoSYar9b/VUZvM63UlW3yJihTthKsjoauE7zCWxJ5xlGYG81oAbZVBbcN3FPF Qf5LUZm75U+YeODEab+Dp6Cj/du6Eyodkj2TnZLLNDjLy3UmQnD87u4vodTNovw2ayQ/Yz6as UH86UuVXCJIDBDx0x2jyuXsyJGwWokeB8zh8iD8eXTK5ZFKjZKBfQd+XC+QtTLg0ozpUpKbAd 6bdfK9UM9g0SK/XmJ3LZGnK4Z7sJPAnvE+1hEMhfbPEosNeu2oJ6HsOVjszTOydG6akUV9NoQ 4e8cdzeHgI4LR3LMxqOvgP5nEcTt+UbgnOi9rUDYCWz6UraizHF4D/pwo69WRDHE1lQGEeUI1 YJr7Up9oU0gcUdX8Fezr4KJ8+Wh0vDKyNFkWI+hG9SqbeAO9Rn7+XIrVzFlRG+3/u4bx2nN2c SCTl04y4TlRFUZNJvYNe+7G+bt7eO/7kGaUIcVKNvpKnCZnhot33eXYd66KpxtgZKZmXVElBQ 82pkIsUDrBag6cpa0q7iyyM0twCX8Dv5DOTbcaFi68cELvCG6K2xRH5mTxc6vv5LYUayXCd8I ethC6US44SdxiUKQ1oJZlK8uwdUG/OAb3iOzEyKQhuw+Z8Lu3H1CtyvLDs86DEBQ+cKMV9Xez Ee7Toe7HQSwqb1Ikmzw2/MGEqvrXnmP7lvbNAOANfqpyU0haQQDWVr0/+bUNMkCZJt/MwbsKt lXfQJ40
Received-SPF: pass client-ip=212.227.15.18; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-8.2
X-W3C-Hub-Spam-Report: AWL=1.421, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1bwkQb-0007jT-Fg 637ee85e3014f7cd85b1b905ce35b9d0
X-Original-To: ietf-http-wg@w3.org
Subject: =?UTF-8?B?UmU6IElzIOKAnGZyLCBlbjsgcT0wLjPigJ0gYSB2YWxpZCBBY2NlcHQt?= =?UTF-8?Q?Language_value=3f?=
Archived-At: <http://www.w3.org/mid/7135c8b0-9f02-04bb-5649-dbab1ba6313c@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32628
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-10-19 02:31, Samuel Williams wrote:
> According to the RFC, it's okay to have *LWS between words and
> separators. However, if you look at the specific ABNF for matching the
> Accept-Language field, it doesn't allow for whitespace around the ;
> character.
>
> Here is the exact LWS specification:
>
> implied *LWS: The grammar described by this specification is
> word-based. Except where noted otherwise, linear white space (LWS) can
> be included between any two adjacent words (token or quoted-string),
> and between adjacent words and separators, without changing the
> interpretation of a field. At least one delimiter (LWS and/or
> separators) MUST exist between any two tokens (for the definition of
> "token" below), since they would otherwise be interpreted as a single
> token.
>
> Here is the ABNF grammar:
>
>    Accept-Language = "Accept-Language" ":"
>                      1#( language-range [ ";" "q" "=" qvalue ] )
>    language-range  = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
>
> Any advice would be appreciated. Thanks

a) Look at the current spec, not RFC 2616.

b) Over there you will find:

>   weight = OWS ";" OWS "q=" qvalue
>   qvalue = ( "0" [ "." 0*3DIGIT ] )
>          / ( "1" [ "." 0*3("0") ] )


<https://greenbytes.de/tech/webdav/rfc7231.html#quality.values>

Best regards, Julian