DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 601Jg8Wi1685561 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 601Jg8Wi1685561 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=XV+UP9ZQ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5643D4BA2E07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1767296527; bh=GGr7A2LaRCWpXbmuL4g6gGZwtrEUEjUmWL6vz+vAlMA=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=XV+UP9ZQNGlU7xjekMSdSJ4Rexrr4lDxuAFizd3rjH1xyg0iK5wkWkvOrAcKkh7Kl Va3CTip0jWTx99bASDXHuVa+FNXAtTeUJpOQXOtBmIiIEXcI09Ubu1fcukBUC3jnLz SKnvVsDO86C29S2szII4bxIsB1CuoGbYIzdWvS8g= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C14EF4BA2E04 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C14EF4BA2E04 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767296507; cv=none; b=W018D33kDJjvb5ipOyAh+HHcASTzF2VNi9jdlNAfX1FTGWEBf7PnnVJd/EmG3ncEGVrFEGEbo56Chb9q2g1UGyLjgU0f2MHEtiLrt0soeBxOIwgrZIje10WW2m7MnkMbZWevqA0fb2sI0QMkmU/XtXapph+XdDUjrhELt+hYiKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767296507; c=relaxed/simple; bh=vCg0goU7/K5VJ1FNlCRMxTKJaTBW1CQUPELHTIseakI=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=mDF+93w5UEKepK9L6+UMn0UIbfyn/VNPU8ki2yvIlZ2oKaY9ZJQeXMnC3ALUE48nWdHwcTncR8agdx4Q2xLPmeyOxBtXgdYgxXNfuh3qWdZjw+oICv1ZH7o1aT0TAs+0F+fNdKsO01HthVbeVb+uDa7YedhAZuk1Dp44uzj1YZ8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C14EF4BA2E04 Message-ID: Date: Thu, 1 Jan 2026 12:41:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Spurious warning generated by bash To: cygwin AT cygwin DOT com References: <0fb6c806-90d9-4455-b717-2130a274aa60 AT SystematicSW DOT ab DOT ca> <739109891 DOT 3098134 DOT 1767264102829 AT mail DOT yahoo DOT com> Content-Language: en-CA Organization: Systematic Software In-Reply-To: <739109891.3098134.1767264102829@mail.yahoo.com> X-Stat-Signature: fxgd17tamj4tdirww4uk8fbydjq3ykgb X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 9ECD32F X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+wjQ9LRSQYWipcgbPMe+43OJ4RVJ+chA8= X-HE-Tag: 1767296505-166549 X-HE-Meta: U2FsdGVkX1+TQBOtNox7lmNQqv67NLhYJYFFEsfyHYvNe8a0T/Ixxd16rIGSmnPRB7m4CZxh7Pu+Sn4gPou6gp1x9z+5TF7xJv7DoFHIRBMA/7b91eyC4ZP9PmiDJUER2l2BFSOBLKQEju+2b8sBIzwnyRRR0eTSD0uUwWFH7+cyIDpGTPxprcPrG7QqCt6t0rc26HFxpPnF3ymNAuUxzWrhzREAwbwRFLu8KF9SAHfAiQa3j9ZHjuqifvY86CVVd1M/0qhaf2tDSzy7KHyNCa+id6eAkA3/vip8OoAAk9J/NVua00Li3hBy2cHTanr64Wrsep7Miv/f3hEURjNVrtsQHtRllR/K2lr7hED+sqS2VuCHcjqAyQ== 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: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" 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 601Jg8Wi1685561 On 2026-01-01 03:41, matthew patton wrote: > since when is it acceptable to have UTF-8 format files as shell scripts, perl scripts or even python programs? 1992 X/Open USL Dave Prosser, Plan 9 Ken Thompson, Rob Pike; 1993 USENIX, Unicode, ISO/IEC 10646; IETF 1998. > 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. Never had any problems since switching when Windows supported chcp 65001, and Cygwin and libraries got decent support for UTF-8 translations for apps, and UTF-8 Compose support, maybe about 5-10 years ago. > you know how people pose the question "if you could go back in time, would you kill Hitler? You say that as if anyone would not try. > Same needs to be asked about the person/committee that came up with UTF8. No one should make such a comment about character sets and developers, or most other tech topics. https://en.wikipedia.org/wiki/UTF-8: "...fewer internationalization issues than any alternative text encoding. UTF-8 is dominant for all countries/languages on the internet, is used in most standards, often the only allowed encoding, and is supported by all modern operating systems and programming languages." Happy New Year! ;^> -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- 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