From 73daee811047822d6c47ea21229827e873d878cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20A=2E=20Holm?= Date: Sat, 21 Sep 2024 18:46:50 +0200 Subject: [PATCH] ascii: Output UTF-8 instead of ISO-8859-1 + add `strict` and `warnings` It's an old script I created 25.34 years ago, and back in those days we didn't know any better. 4e7f0486-783e-11ef-bdb0-83850402c3ce --- ascii | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ascii b/ascii index 6a936edc..61f45181 100755 --- a/ascii +++ b/ascii @@ -4,6 +4,11 @@ # File ID: 1c7b6196-5d37-11df-b1f7-90e6ba3022ac # Avansert esse +use strict; +use warnings; + +binmode(STDOUT, ":utf8"); + for (32..255) { printf("%03u 0x%02x %c\n", $_, $_, $_); } -- 2.11.4.GIT