From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer Date: Tue, 28 May 2019 08:21:04 +0200 Message-ID: References: <20190525191039.14136.23307@vcs0.savannah.gnu.org> <20190525191040.CCD6C207F5@vcs0.savannah.gnu.org> <83v9xv2649.fsf@gnu.org> <83imtv1fbf.fsf@gnu.org> <7F0B61E6-C0CA-449B-B432-095569589168@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="3030"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 28 08:21:50 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVVUb-0000h6-TI for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 08:21:50 +0200 Original-Received: from localhost ([127.0.0.1]:57876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVVUa-0006tI-DF for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 02:21:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVVTw-0006t9-WA for emacs-devel@gnu.org; Tue, 28 May 2019 02:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVVTw-0001fC-6O for emacs-devel@gnu.org; Tue, 28 May 2019 02:21:08 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:45700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVVTv-0001ek-Ur; Tue, 28 May 2019 02:21:08 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id b18so18751181wrq.12; Mon, 27 May 2019 23:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=C9Ha9u0AlbKa2PWgsp4QI3AxcXGGcQSYeVVmUNpu2Yo=; b=FPhEdBEoN7Sm5e/51VrQDMPdyY8EW1SkgEytgZSKs8IFKOS6BmRv+nRgEIwJQbS8W3 FxqdLdrvxakjPLRn3yU7UsJqu6eD4JBjVEM3ByL7Ep4wrYYMbaI7goN3OzQ2srixQnQ9 tLoMCLE2krsDCqF9WlVN9FZgePp+IIg7FXGp/6biNDHK5dZxvqPOosYEWk5sJIaewwNN LX0nDcFTGF0HfGyaoInQsf2GBRybXvnJtQTw5jRNl48w670kvOYcr3j0yTDztr17myJC 9dWOU/tbn34On2oi8zvhnu1qNIOoXuOa4IGf7XT36eYCI0bzfv5+L0yOvEY/wUoUp6ey 3a6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version; bh=C9Ha9u0AlbKa2PWgsp4QI3AxcXGGcQSYeVVmUNpu2Yo=; b=IbCwglit05C6C9WZ6D+3wdUz10AAN8eQVrrSjix4bfNmpnhgapstd75GBiNUZSNKq4 lqqotrqo3eGz1KRBuop0UwMbzynsQ5pTSqw/tfeeLgmtliKFtD8kIVmKEnC67a8kjLTo cwwZ0p/5JZXM+kTos1fMEhNA26e2elelr9JxtGNzSMBLj6B7ih+9Ik2inJ/FqmPBstyp +tDbD4lSnbNMsOU5krVVwF2PiB/vUi1kOL8e0vr4oEAzykv61Py4JpgGIhZllTpajnat NzkXavEui/BzL/yA+GeO2HLvJfE267nYJf2BMHZsKmp89EMzVZwz+qxOadcs2Wy7UZkA sVaA== X-Gm-Message-State: APjAAAV8P15Mzs1U77B3rl9NasOAC3aSIoNwSgvjhHknob4yI5MIRddZ dSZ1ZbqeDjbJB08OYPAqOjg= X-Google-Smtp-Source: APXvYqxxkdyf1dPmc0V2ordiXFVr+7TroeXbrs3hgD2LCnf2zFA0r0VscU8erj1JUcHVHkNiJ47USw== X-Received: by 2002:adf:fc8f:: with SMTP id g15mr24240587wrr.122.1559024466231; Mon, 27 May 2019 23:21:06 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y132sm2269522wmd.35.2019.05.27.23.21.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 27 May 2019 23:21:05 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <7F0B61E6-C0CA-449B-B432-095569589168@gnu.org> (Eli Zaretskii's message of "Tue, 28 May 2019 07:17:35 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237075 Archived-At: >>>>> On Tue, 28 May 2019 07:17:35 +0300, Eli Zaretskii said: >> I'm not sure where you read that I was arguing we shouldn't support >> this scenario. I was just pointing out that utf-8-emacs-unix is not >> the >> only thing that makes sense: string-to-unibyte should work just as >> well >> (if not better). >> >> >> Stefan Eli> string-to-unibyte is also marked obsolete. Robert was asking how to Eli> use encoding functions instead of the obsolete string-as-unibyte; Eli> advising to use yet another obsolete function makes little sense to Eli> me. Plus calling string-to-unibyte on a multi-byte string will signal an error. (encode-coding-string str 'emacs-internal) seems to be what I want, as Eli pointed out upthread. Robert