From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to get buffer byte length (not number of characters)? Date: Mon, 26 Aug 2024 14:20:12 +0300 Message-ID: <86o75fjztf.fsf@gnu.org> References: <87wmkbekjp.fsf@ushin.org> <86o75nwilg.fsf@gnu.org> <87mskz7ps2.fsf@ushin.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Joseph Turner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 26 13:21:06 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1siXmU-0005iA-1g for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Aug 2024 13:21:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siXlu-0004Yp-VF; Mon, 26 Aug 2024 07:20:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siXlt-0004T1-Du for emacs-devel@gnu.org; Mon, 26 Aug 2024 07:20:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siXlr-0003kt-Ot; Mon, 26 Aug 2024 07:20:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WlTU617n5BFESM/F7TBk3VKPe1Nj9bWTauewoOl6lPo=; b=ZCatzaYvgZA3 WzBCbDlg34ltNqRC59BS3iIT+GV2CxFu6hoIE+YdZ15G+jTcgK37RNT4HhTUqtZs5KIjLQ96y9FW2 CjngUWahoIbx9LZufKPWcof09IaoTSW/7CwlaFLIwK5oaS1VQ0LORsxFCMQ+lJ+bVXMa9GbPYacxu vUCR8hsV6bB2+W3ptmhS+yrLcDBN/8LHWZVJNsRmZVcZ/THOV0h2jx4jBF7HPk3vq3d4c74uNCwX7 +onFqOif0iyVUNUw3zJxAOY6wI8tMiX6pkpktuQN8kLL7y3q52rgMbi9hAhelrORHle3KO+iH0gXp pq6I8f1Ml1JuxZfoaP5NXQ==; In-Reply-To: <87mskz7ps2.fsf@ushin.org> (message from Joseph Turner on Sun, 25 Aug 2024 23:37:49 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323126 Archived-At: > From: Joseph Turner > Cc: emacs-devel@gnu.org > Date: Sun, 25 Aug 2024 23:37:49 -0700 > > IOW, does `select-safe-coding-system' always return an encoding which > specifies EOL conversion? Yes, provided that either buffer-file-coding-system or its default value specify a particular EOL conversion.