From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: Sanitizing file names? Date: Tue, 10 Sep 2024 12:09:50 -0800 Message-ID: <87v7z3jmnl.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11414"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Mailing List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 22:11:04 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1so7Ca-0002lv-Ch for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 22:11:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so7Bu-0007jH-4D; Tue, 10 Sep 2024 16:10:22 -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 1so7Br-0007iu-6j for help-gnu-emacs@gnu.org; Tue, 10 Sep 2024 16:10:19 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1so7Bp-0003Xb-B7 for help-gnu-emacs@gnu.org; Tue, 10 Sep 2024 16:10:18 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id D423F22F648 for ; Tue, 10 Sep 2024 22:09:57 +0200 (CEST) Authentication-Results: ext-mx-out013.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1725998994; x=1727813395; bh=VyGK/POgRV1uMuq+CNFG++UD4gM3amNaMxiJqprc2ak=; b=EQsOEcpcBqVh mYL9vad4cGFweIounLezlUWe32BlOTHAqOpa/VRhpdVROp+JvIBFZKF4kYITjVTz Mor5ZPYXXW7x+JNdBkYW6MzBW49iRXeeBUahsg7ijTDnrcshc9kDJQQs3TPpuSmk vToyJoxtCA1pEFizxMkC5kcoF+Hq13SGI7d4uQMXEg6R37vEgaCz2Z5zBUIxMYA9 VqPmOE3WZG1ythPu//iVNd8U1JeRBmlekYLknWQhYVHLKq78jm6RH+ybC91OYavR 7j7LzFUDfafffFW/3dNGE0gYLdlgHQGleA2ADY4LV8nXHop9oH/d5q8vCXmGV8Aa xIt36FJ5TA== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id zuE1QSKLK_GR for ; Tue, 10 Sep 2024 22:09:54 +0200 (CEST) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id 8839D22F647 for ; Tue, 10 Sep 2024 22:09:53 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 7E95420D6AF6 for ; Tue, 10 Sep 2024 22:09:53 +0200 (CEST) Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147949 Archived-At: Hi, does Emacs/Elisp have any kind of API to help with sanitizing file name= s for the underlying OS/file-system limitations? Some of my projects involv= e older Windows systems that won't allow various characters in the file nam= e like question marks and colons. --=20 =F0=9F=93=9B Christopher Howard =F0=9F=9A=80 gemini://gem.librehacker.com =F0=9F=8C=90 http://gem.librehacker.com =D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94= =D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA= =D7=94=D7=90=D7=A8=D7=A5