From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.132.4 with SMTP id f4cs124041wfd; Thu, 29 Oct 2009 15:45:53 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.150.17.1 as permitted sender) client-ip=10.150.17.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.150.17.1 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.150.17.1]) by 10.150.17.1 with SMTP id 1mr1578610ybq.34.1256856352474 (num_hops = 1); Thu, 29 Oct 2009 15:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :mime-version:content-type:received:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=hzI1YpPW6NwOr8AJyOdlEMjZhyB0rgrPeuDntmTXN0Y=; b=JubqO7pUIwP8ontC7XdV/Ub065HT/DkLZxRvZt3p9QAuB39vDL9fiJ0yboxQZdbBVn luCx34s51CeSgN+31rjaX40CYQcq45xogShkeflO4SiCgroyDkfdATgU3LC56fe8HaaI o2du2GBSbk5WCeJePC1sz/Aa8fvPJHHazje1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:mime-version:content-type:date:x-ip :user-agent:x-http-useragent:message-id:subject:from:to :x-google-approved:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=gcx0vxVYs7YGCBuKrWCk8vT2oiLWM9J6bZ5qiIcJVmD8dt1/uojtdZqbjqmU2UEhRB abGQa9o3fYuIbTFEr5/XLYwbOhwaA0/MCxpjFcF90/EesWNldSDLjGKHgcwzODsKX6bD VLFYwgjMFx6JPAP4vTFSQp9/4venUflzMQg0A= Received: by 10.150.17.1 with SMTP id 1mr146719ybq.34.1256856346872; Thu, 29 Oct 2009 15:45:46 -0700 (PDT) Received: by 10.176.140.25 with SMTP id n25gr1714yqd.0; Thu, 29 Oct 2009 15:45:39 -0700 (PDT) X-Sender: uvsoft@gmail.com X-Apparently-To: rack-devel@googlegroups.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Received: by 10.100.202.3 with SMTP id z3mr66745anf.32.1256847346728; Thu, 29 Oct 2009 13:15:46 -0700 (PDT) Date: Thu, 29 Oct 2009 13:15:46 -0700 (PDT) X-IP: 87.249.46.150 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; ru-ru) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9,gzip(gfe),gzip(gfe) Message-ID: Subject: BUG: cookies with expiration date From: Ivan Ukhov To: Rack Development X-Google-Approved: scytrin@gmail.com via web at 2009-10-29 22:45:37 Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com Hi! Please have a look at this line: http://github.com/rack/rack/blob/663abfce9b71ab273c8adc0e76c233671bc43e1d/lib/rack/response.rb#L64 value[:expires].clone.gmtime.strftime("%a, %d-%b-%Y %H:%M:%S GMT") My default system locale is ru_RU.UTF8, therefore this line produces string with Russian letters. Browsers cant set expiration date in Russian. FF sets session cookies, Safari doesnt set cookies at all. Suppose this is a bug. Instead of strftime, rfc2822 should be used. Thanks.