DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 601HKWJX1617269 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 601HKWJX1617269 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sR9BoA68 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B9F94BA2E28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1767288032; bh=mllaZ7VoCh0OERFKiGNI4gE5wglTRyxk7cJh4MjJHSo=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sR9BoA68DWgru+MfgbCN6irUsVsI3XOB3c5+rY9ziKOIuClENz6wvcqxfNW5VuKsD OKs3x8KGm7pNtcQ+RxjA+Z1cGVBGVyvpT8HVD5ZTffGPlJ3Xw86AOt4WSsYid+fnY+ QJdJC8P0AmOwboyeDApoFUMIrAb0g8zz5vgVC7Fs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8C244BA2E2D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8C244BA2E2D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767288013; cv=none; b=rS76/nNAH5daSFAzC8SKcGMM/7CO9BdJv7JbBqkw509DdgJ9eTJ8lEJWxpBHJ+D9dOOYEEDoiuxBB8yOj0hLoCDUG5Q78T5X2nVlbDp8CEVtW4iWh6G1aTfB2sDFoHIK5Nj0D38j+OKNONtjC/xG4zLyHtEew+lSYzgn48j2cFY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767288013; c=relaxed/simple; bh=enGDCr/DkNoVP+4f0CkfwbzlOEYKdlMdCZZzSMBGpuI=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=eMOIf/Uepi5W2WbwbkRYW+xzG6pWtNwSWrUtVnAueBa8Je6QuEqj/aa2Dguftz6xDdRFfF9qwbOWKanEnoSKychzVs7EUKrHHUlQKyASVB3n/UjHf53v0Wgj/zVh59wbUzN4qID3RTbCEerBMS38FanJ5mMdXi06CnHH41GOHuo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8C244BA2E2D X-Yandex-Fwd: 1 Date: Thu, 1 Jan 2026 20:17:48 +0300 X-Mailer: The Bat! (v11.4.3) Home Message-ID: <1794184404.20260101201748@yandex.ru> To: matthew patton , cygwin AT cygwin DOT com Subject: Re: Spurious warning generated by bash In-Reply-To: <739109891.3098134.1767264102829@mail.yahoo.com> References: <0fb6c806-90d9-4455-b717-2130a274aa60 AT SystematicSW DOT ab DOT ca> <739109891 DOT 3098134 DOT 1767264102829 AT mail DOT yahoo DOT com> MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 601HKWJX1617269 Greetings, matthew patton! > since when is it acceptable to have UTF-8 format files as shell scripts, > perl scripts or even python programs? Since… forever? UTF-8 is compatible with ASCII on that level. The problem when you see `#!/xxx: No such file or directory` error is (either) a so-called "byte order mark" (which is not quite the same as UTF-16 BOM), or a CRLF line ending. > a directive in .vimrc can probably help. along the lines of  > au BefRead,ButNewFile *.sh,*.pl,*.py set nobomb > or if you invoke your shell script with `bash --utf8 > ./my_broken^H^H^H^Hutf-encoded.script` or just `LANG=C.UTF-8 ./my_utf8-script` or set LC_ALL etc. > you know how people pose the question "if you could go back in time, would > you kill Hitler? Same needs to be asked about the person/committee that came up with UTF8. I suggest the https://www.joelonsoftware.com/articles/Unicode.html for an answer. -- With best regards, Andrey Repin Thursday, January 1, 2026 20:08:58 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple