From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH v2] rdelim: Add new procedure `for-line-in-file`. Date: Mon, 16 Dec 2024 16:41:30 +0900 Message-ID: References: <0c0bc19c-9b46-4da7-b200-3de0355949fa@disroot.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c8942806295e4f9d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35267"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org, Ricardo Wurmus , Maxime Devos To: Adam Faiz Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Dec 16 08:42:12 2024 Return-path: Envelope-to: guile-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 1tN5k3-00090k-O7 for guile-devel@m.gmane-mx.org; Mon, 16 Dec 2024 08:42:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN5jk-0002Wr-3J; Mon, 16 Dec 2024 02:41:52 -0500 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 1tN5jd-0002Vv-VM for guile-devel@gnu.org; Mon, 16 Dec 2024 02:41:48 -0500 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tN5jc-00063h-9Y for guile-devel@gnu.org; Mon, 16 Dec 2024 02:41:45 -0500 Original-Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2ef28f07dbaso2554846a91.2 for ; Sun, 15 Dec 2024 23:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734334903; x=1734939703; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3UGh3vvs9lQzgITjPgkAtM8ZvImfmEerNDjiffjVkzA=; b=ZeG2BwZVhnjmxBArNcs9H1RL85R1vFqIJOYKr9r7EsO0sXUjklJ4c7Hrr0/hW0Mm7m WP1cd9rlWMKW0SienUF0oYVxXddb1dgTyPZn7BjPoCohgBYTNHHx+lDv5eGX+fN30F6y lTZOnthyupjPdVnBx5R4i5mcL5z8vltKCbH8vhrD7kIjYdcsekdhx8Ain7aJbkV5iSCE jbdQiCsucZ1mzfbptP3lwYCVBjmxJ4QLOR/6oq65eEtTZBAFLLP5rUuWErtV27g7DQ3i DzdJ+smITE+VBhz0Xy7PvkII5XbLChY72WKvXkDyi1OLTGCMKkessf0otrx8/0LH52Xv QHpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734334903; x=1734939703; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3UGh3vvs9lQzgITjPgkAtM8ZvImfmEerNDjiffjVkzA=; b=n+oUWg96IszgGXPpqc4A8Lz1oG8AWWOXfq/CoHuUAWPlT4uXu5o2IPoyFHWjgvb39V hCjy6cs9NSjBoXnIrMKrcrysVtTXzWkVr4DmMS5fNkLVOkpC0TGhkPlk0lSG/t3QT0Cp E11QeGwu8CLsdZ/OvJEKiejH01xbzQoLiJlb8sa3fnBObwN7W2L6XaIPj336WyB2sBi4 smjh14jvMSH9emHB2D9Be/ECRT5R4p8GwSJMiq4bhEa6K8cQ8Xq7keBnAgnsDwGv8xGU hssnjOZqHrHyVypv5LB4TkebQDQ23M7Ojr/Gb1GdedB2bgWDrwKiGEvxvUfFkwZ0HXsB /V+Q== X-Gm-Message-State: AOJu0Yw5IZt/nECk4xl4quU0SMC79a8kUUsg41TW0eogUH8Du6mFihpA 8DSHYld32/siIlUe7UXtAxobQ7+lYvq+qlgUvAt4PsSetvDkY+AkF7RtN+LLIxRbmYFUssC0X7E kpbJj6cTgw+m0yt+267J1c9Z/9vA= X-Gm-Gg: ASbGnctXTS9S1F5oUL2ihIXxNbgump94U5IoLYsqKyAsXrX6wcajesQOp0aMZYmWuvG ylL/8GQ6wYl9a1zAsJYm19ovHCWgUK//+wUyXOg== X-Google-Smtp-Source: AGHT+IEQkIEmf9FX2rsTaRdXcmYCKU2XxnSYdOV+OE71aA1iyPnYCscuT99CVcGFIU9tZZtP/C9xSd3P23XiF6T0jG4= X-Received: by 2002:a17:90b:5350:b0:2ee:fd53:2b17 with SMTP id 98e67ed59e1d1-2f290d9883emr18462708a91.29.1734334902471; Sun, 15 Dec 2024 23:41:42 -0800 (PST) In-Reply-To: <0c0bc19c-9b46-4da7-b200-3de0355949fa@disroot.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=nalaginrut@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: 0 X-Spam_score: -0.0 X-Spam_bar: / X-Spam_report: (-0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_IMAGE_ONLY_12=2.059, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22819 Archived-At: --000000000000c8942806295e4f9d Content-Type: text/plain; charset="UTF-8" Hi Adam! For string manipulation, the proper encoding has to be considered. It's better to use the provided [#:guess-encoding=#f] [#:encoding=#f] as well. You may take a look at call-with-input-file in document: https://www.gnu.org/software/guile/manual/html_node/File-Ports.html BTW, in your case, you can ignore the binary mode. Best regards. > > --000000000000c8942806295e4f9d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Adam!
For strin= g manipulation, the proper encoding has=C2=A0to be considered. It's bet= ter to use the provided=C2=A0[#:guess-encodin= g=3D#f] [#:encoding=3D#f] as well.
You may take a look at c= all-with-input-file in document:

=
BTW, in your case, you can ignore the binary mode.

Best regards.

--000000000000c8942806295e4f9d--