From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OD9pFR6h52TVIAEASxT56A (envelope-from ) for ; Thu, 24 Aug 2023 20:27:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wBz1FB6h52SFdgEAauVa8A (envelope-from ) for ; Thu, 24 Aug 2023 20:27:42 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ED513527A5 for ; Thu, 24 Aug 2023 20:27:41 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=k+F08fFW; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692901662; a=rsa-sha256; cv=none; b=kXwS0yhhi/+O0E9tVzWjI1sFhwdT2pZtFDGuMZgOJOwmSk6sQ06tmVx6goixpSQ/puljS3 HKeGZ4UoxCqcEANzYt7x+6XwBBVF2lvbodHXb+i9KJgYcX/yYZaCsNGAXNgwG0gA0wIH9H Ap7SQkkUxzcNr3XqbnolH6HTwyOwd+QfNTCSOqVzeTTqi0DKZC+Q2ZOzLFGBEuIYgMBN7y PGMWXslOAV7elzJ51s9baJDibBAFBLyywwXysNj9OsNRftyXp080ajAB8gB0/nJcB9NCFJ ELnZ/+eAdD1RtWYO1LxlzN/kKhVc3x1gUSod16G7niALzqD/U/4OyutPA2x5Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=k+F08fFW; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692901662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KfDD1X7MvKleRHm/DzutsNZpv367B9oOtY6LhBH/UBg=; b=t/0jTOWanxaKnERxUisi1420Ym+LwvSuip3WW2vmG4FS9cXBHo/UohHbhXFRO3z5LeseUB cLCeL1RKz59v9ZtWDtUJyrvi7JY0d9HU+khgwMeSZtHXIrxuq5mtcvJCuQnZAx63WEC12v 98Hj9hPdV56BojSESv7HnWvEix9Q8O0a0MNk8sfYxWrqhM29JOPcPPkIUCHjKqP0E5Co34 tNTvzMZtHkOVBrKLKDGpZBivgv3/gy7H7vFlbr5R+3LI6ZhUserKjzkfg+Lnx3m0SWYOot OjpLBJQ743LqN6ATV7VjvSsiCUNc2UBkyAJinr68tX67mqxwjtyz/cx+405HSw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZF2z-0002LK-5F; Thu, 24 Aug 2023 14:27:09 -0400 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 1qZF2y-0002L8-1O for guix-devel@gnu.org; Thu, 24 Aug 2023 14:27:08 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZF2v-0004pJ-Nt for guix-devel@gnu.org; Thu, 24 Aug 2023 14:27:07 -0400 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-410994a240aso515501cf.1 for ; Thu, 24 Aug 2023 11:27:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692901624; x=1693506424; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KfDD1X7MvKleRHm/DzutsNZpv367B9oOtY6LhBH/UBg=; b=k+F08fFWZmMJm42/kWMXmL2EdZav15UvKeKQimNTOIbfJsH9isky2luP1o9bIdOjiX ohJxePWCDTw3Tpg1blMHibsYjn2syU1iPUCquawN1xo1DgP1mKXG5mD2lrRVH1Z3CCLj l5WuaBDGxIkb2lJ7ENY6gVXRLsvaIKIQDeClw8ukplgV0vJWNgnWZ+SWx2gQVPLnBGI/ OqkE0q7n5AVOqqzbrhi57AbKc8Z/3obJOHjTsbYu0p8Nv/pwXmIlwTcGfswyceYtl0ux SNXnPaFboQDQy1s7ibSTOoOdkMMu2b2rtfQ5NW8ypd0fx9xsuqGH1Ze0WXWIHbcHpgoV bmBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692901624; x=1693506424; h=content-transfer-encoding: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=KfDD1X7MvKleRHm/DzutsNZpv367B9oOtY6LhBH/UBg=; b=KpoZsscbt23N043j4hYtWVDFfJRhmh1P6i+DpR/7M9Tv6Ebr5eA4bfD6AnGEoSK1MK bwFE4rNwQFeiy90CvJRHz+SzLUnPkrbkNuEmJgRVPUKQIx5Xz0DERYjBzQJIzvVWURMr M6sdDcLWRJCOp+6J3IrCRMq886BQixYqVL+1lb9Zmpcu8v8PRMtzS5Tuz4EB3+avapZQ z+1fiQxnm0oAQd0MsUij1WglOcldWLmDsUvcwfNouG3KxxO6sBQp0pmqHGBIQ/uiiGP0 WkRuo7galywsyEGE/rwC5/vdt/V1kjwZ8muMXcmTHk6JhwRiwKHqd7ittAraMt7CLVlS n1bQ== X-Gm-Message-State: AOJu0YzQJ6sgmfprvvAMg8K2ienAF4AIxCnhHlG4FSUU1++IlsHb4RAR WRGiD5u4xnhdSicYwwS6p7gyrrqRTzL6pEDlFAM= X-Google-Smtp-Source: AGHT+IE3vOWkbH+5wdgCskl4JDi5fQJYFQ6OEPiEq/xvU3k/0r94eqleGgQcT+MNXUJGiVNc3E1Wj/9+HT/OwLUnwO0= X-Received: by 2002:a05:622a:13cc:b0:407:fb08:c44c with SMTP id p12-20020a05622a13cc00b00407fb08c44cmr16828603qtk.47.1692901624353; Thu, 24 Aug 2023 11:27:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Eidvilas_Markevi=C4=8Dius?= Date: Thu, 24 Aug 2023 21:26:53 +0300 Message-ID: Subject: Re: Relaxing the restrictions for store item names To: Kaelyn Cc: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=markeviciuseidvilas@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -8.45 X-Migadu-Queue-Id: ED513527A5 X-Migadu-Spam-Score: -8.45 X-TUID: 5Q+coM0pTbNV I guess that's true, but I very much doubt errors like this would come up very often. Out of precaution, we could make guix lint issue us a warning whenever a non-ASCII character is detected in a package name or elsewhere. This would lower the chances of such oversights occurring even more. On Thu, Aug 24, 2023 at 7:30=E2=80=AFPM Kaelyn wrote: > > Hi, > > On Tuesday, August 22nd, 2023 at 6:49 AM, Eidvilas Markevi=C4=8Dius > wrote: > > > Therefore, my proposal is to relax these limitations as much as > > possible (or at least somewhat) and to allow some more freedom when it > > comes to naming packages and other kinds of items in the store. We > > could, of course, still disallow all the main problematic characters, > > such as NUL, /, $, ~, space, newline and a few others, but other than > > that, I don't see any reason to forbid any of the remaining ones from > > being used. > > While I don't really have an opinion on the matter aside from the biases > of growing up in the US, one non-trivial issue with Unicode store paths > and package names which hasn't been mentioned is that of Unicode > equivalence[1], particularly homographs[2]. For example U+0061 and U+0430 > (the Latin and Cyrillic small letter "a", respectively) are often visuall= y > identical but programmatically distinct. If not handled well, it could > lead to untypable package or store names by virtue of the user having to > guess which Unicode code point(s) is/are the correct one(s) for a certain > visual glyph. > > Cheers, > Kaelyn > > [1] https://en.wikipedia.org/wiki/Unicode_equivalence > [2] https://en.wikipedia.org/wiki/IDN_homograph_attack