Received: by 10.35.130.15 with SMTP id h15mr26078683pyn.1191127554504; Sat, 29 Sep 2007 21:45:54 -0700 (PDT) Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx.google.com with ESMTP id k36si11557154waf.2007.09.29.21.45.54; Sat, 29 Sep 2007 21:45:54 -0700 (PDT) Received-SPF: pass (google.com: domain of florgro+caf_=ruby-core-google-garchive-1974=googlegroups....@gmail.com designates 64.233.166.183 as permitted sender) client-ip=64.233.166.183; Authentication-Results: mx.google.com; spf=pass smtp.mail=florgro+caf_=ruby-core-google-garchive-1974=googlegroups....@gmail.com Received: by py-out-1112.google.com with SMTP id a25so6823156pyi for ; Sat, 29 Sep 2007 21:45:53 -0700 (PDT) Received: by 10.35.91.1 with SMTP id t1mr425609pyl.1191127553947; Sat, 29 Sep 2007 21:45:53 -0700 (PDT) X-Forwarded-To: ruby-core-google-garchive-1974@googlegroups.com X-Forwarded-For: flor...@gmail.com ruby-core-google-garchive-1974@googlegroups.com Delivered-To: flor...@gmail.com Received: by 10.35.62.14 with SMTP id p14cs85247pyk; Sat, 29 Sep 2007 21:45:52 -0700 (PDT) Received: by 10.114.106.1 with SMTP id e1mr2895465wac.1191127548192; Sat, 29 Sep 2007 21:45:48 -0700 (PDT) Return-Path: Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by mx.google.com with ESMTP id l17si6360447rvb.2007.09.29.21.45.26; Sat, 29 Sep 2007 21:45:48 -0700 (PDT) Received-SPF: pass (google.com: domain of ruby-core-ad...@ruby-lang.org designates 221.186.184.68 as permitted sender) client-ip=221.186.184.68; Authentication-Results: mx.google.com; spf=pass smtp.mail=ruby-core-ad...@ruby-lang.org Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id C510C3C21E313; Sun, 30 Sep 2007 13:44:58 +0900 (JST) Received: from smtp114.sbc.mail.re2.yahoo.com (smtp114.sbc.mail.re2.yahoo.com [68.142.229.91]) by carbon.ruby-lang.org (Postfix) with SMTP id 0E38E3C21E7C3 for ; Sun, 30 Sep 2007 13:44:53 +0900 (JST) Received: (qmail 70450 invoked from network); 30 Sep 2007 04:44:33 -0000 Received: from unknown (HELO ?10.0.1.3?) (wright_gar...@sbcglobal.net@69.177.145.179 with plain) by smtp114.sbc.mail.re2.yahoo.com with SMTP; 30 Sep 2007 04:44:33 -0000 Delivered-To: ruby-c...@ruby-lang.org Date: Sun, 30 Sep 2007 13:44:55 +0900 Posted: Sun, 30 Sep 2007 00:44:28 -0400 From: Gary Wright Reply-To: ruby-c...@ruby-lang.org Subject: Re: String.force_encoding To: ruby-c...@ruby-lang.org Message-Id: <0984FDF3-CA20-4821-BC36-2D5FEB06D...@mac.com> In-Reply-To: <6.0.0.20.2.20070929155000.0bb81510@localhost> References: <46FDD70D.8040...@davidflanagan.com> <6.0.0.20.2.20070929155000.0bb81510@localhost> X-ML-Name: ruby-core X-Mail-Count: 12303 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-...@ruby-lang.org; help= X-Mailer: Apple Mail (2.752.3) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on carbon.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=7.0 tests=ARIN,AWL,BAYES_20, CONTENT_TYPE_PRESENT,X_MAILER_PRESENT autolearn=disabled version=3.1.7 X-Original-To: ruby-c...@ruby-lang.org X-YMail-OSG: OAPyqmgVM1n.6DZgXAIU_dNLMuBGHFjc.BXDDRG9YV.JZatMH9okapJnhOg44XDvpehZtaaCQg-- Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk Lines: 27 List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: On Sep 29, 2007, at 3:07 AM, Martin Duerst wrote: > At 13:39 07/09/29, David Flanagan wrote: > >> I don't want to re-open a discussion if this decision has already >> been firmly made. > > It's not completely firm yet, it's just that Nobu had some code to > check > in, and needed a name, and it's better to start with a long and > strange > name and make it shorter if that's necessary than the other way round. In my quick look at the source it seems that str.encoding returns the current encoding of str. So my own POLS would suggest str.encoding = "binary" to change the encoding. It just seems completely non-Ruby-like to have: str.force_encoding("binary") Gary Wright