From 9c94c7df738784c13fd1a06a1ef967de76ddcbbd Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 19 Dec 2023 06:20:41 -0800 Subject: [PATCH] Fix 1990/jaw/Makefile, improve try.sh + bugs.md The optimiser was left disabled by accident. The try.sh now adds another file in the archive. Add entry to bugs.md. There are two issues, or at least one. One issue might not be an issue but it appears to be. The one that appears to be was supposed to be added to the bugs.md file ages ago but was missed by accident. --- 1990/jaw/Makefile | 2 +- 1990/jaw/try.sh | 2 +- bugs.md | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/1990/jaw/Makefile b/1990/jaw/Makefile index d0a88b309..86fa254e4 100644 --- a/1990/jaw/Makefile +++ b/1990/jaw/Makefile @@ -67,7 +67,7 @@ CINCLUDE= # Optimization # -OPT= +OPT= -O3 # Default flags for ANSI C compilation # diff --git a/1990/jaw/try.sh b/1990/jaw/try.sh index 84e6591ae..1398ce7aa 100755 --- a/1990/jaw/try.sh +++ b/1990/jaw/try.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash echo "Running shark.sh:" -./shark.sh shark.sh README.md jaw.c try.sh > receive || exit 1 +./shark.sh atob shark.sh README.md jaw.c try.sh > receive || exit 1 echo "Done." diff --git a/bugs.md b/bugs.md index 9e1f65e40..e805b2da8 100644 --- a/bugs.md +++ b/bugs.md @@ -667,6 +667,60 @@ Enjoy! :-) # 1990 +## 1990 jaw + +### STATUS: known bug - please help us fix +### Source code: [1990/jaw/jaw.c](1990/jaw/jaw.c) +### Information: [1990/jaw/README.md](1990/jaw/README.md) + +[Cody Boone Ferguson](https://www.ioccc.org/winners.html#Cody_Boone_Ferguson) +fixed some issues in this program and [Yusuke +Endoh](https://www.ioccc.org/winners.html#Yusuke_Endoh) provided the `btoa` +script but it appears there is a bug in this entry. The judges wrote that to +test the entry one can do: + +```sh +echo "Quartz glyph jocks vend, fix, BMW." | compress | ./btoa | ./jaw +``` + +which should apply the identity transformation to a minimal holoalphabetic +sentence. + +But doing this shows instead: + +```sh +echo "Quartz glyph jocks vend, fix, BMW." | compress | ./btoa | ./jaw +a얖?)V...?????777??hC??h??-? )SSSSXXX????r?L=???*?-???ppp,,,?R +?j +111-)))? '..F@E + ???b111? +..F..F.?n,,,,,L@E$ +``` + +Notice how there's no newline at the end: that final `$` is the prompt. + +If one does, however: + +```sh +echo "Quartz glyph jocks vend, fix, BMW." | compress | ./btoa | ./jaw | ./jaw +``` + +they will get just + +``` +oops +``` + +which seems to be an error message (one of the fixes was to make it not use +`perror(3)` - this fixed something else though it's no longer known what). + +The script [shark.sh](/1990/jaw/shark.sh) has some issues too in that due to +path not having `.` (this and maybe some other things were fixed) and `tar` not +wanting to accept reading from `stdin` (this in particular) even with the right +options used, seemingly, it has to write to disk the tarball which seems to +defeat the purpose. This would ideally be fixed. + + ## 1990 theorem ### STATUS: INABIAF - please **DO NOT** fix