Test ran at 2025-07-25 01:18:36.720334+00:00 SOLUTION: universal_text_file=20220720.0.0: Proposed universal format for Unicode text files Origin: commit d58797dfdf1818ac064eba99e999bb8cc453d389 from https://github.com/bracke/Universal-Text-File.git Properties: Author: Jeff Carter Build Switches: Description: Proposed universal format for Unicode text files License: BSD-3-Clause Long_Description: # Universal Text File Format Proposed universal format for Unicode text files Here I propose a universal format for Unicode text files, specified by its Ada implementation. Some features of the format are * ASCII code points are encoded as themselves * At most three bytes are used to encode a code point * All code points may occur in a line * Lines may be any length (though the implementation is limited to Integer'Last) I have called this format Universal Text File format, with the acronym UTF. Like GNAT Programming Studio (GPS), this result is an acronym collision. Suggestions for alternative names are welcome. ## Combined Specification and Ada Implementation The format is specified here by its Ada implementation in package UTF, which is short and straightforward. ## Tools Three simple tools are provided: * To_UTF, to convert an Ada.Text_IO file to UTF * From_UTF, to convert a UTF file into an Ada.Text_IO file * Umore, a simple `more` program for UTF files ## Suitability Most tools for processing text files on the major platforms work with native text files from other platforms, and UTF-8 has been widely adopted for encoding Unicode text files, so it seems unlikely that an alternative will gain much traction. However, having done this, I thought I would share it should anyone be interested. ## Standard Software-Engineering Practice Encodings should normally only be used externally to a program. Encoded input data should be decoded immediately upon input, and output data encoded immediatly before output. Maintainer: Bent Bracke Maintainers_Logins: bracke Name: universal_text_file Tag: format Tag: unicode Tag: text Version: 20220720 Website: https://github.com/bracke/Universal-Text-File Dependencies (direct): gnat<13.0 | >=13.3 Dependencies (solution): gnat=15.1.2 (gnat_native) Dependencies (graph): universal_text_file=20220720.0.0 --> gnat=15.1.2 (gnat_native) (<13.0 | >=13.3) LOG: [alr test] Testing universal_text_file=20220720.0.0 [alr test] Spawning retrieval for remote crate: alr -d -n get universal_text_file=20220720.0.0 Note: Deploying universal_text_file=20220720.0.0... universal_text_file=20220720.0.0 successfully retrieved. Dependencies were solved as follows: +b gnat 15.1.2 (new,gnat_native,binary) [alr test] Spawning default test for remote crate: alr -d -n build --release -- -cargs:Ada -gnatwn Note: Building universal_text_file=20220720.0.0/universal_text_file.gpr... /root/.local/share/alire/toolchains/gprbuild_25.0.1_9a2e6cfb/bin/gprbuild: /lib64/libc.so.6: version `GLIBC_2.35' not found (required by /root/.local/share/alire/toolchains/gprbuild_25.0.1_9a2e6cfb/bin/gprbuild) stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6d765eb9-cf28-4dfb-8735-26870ac617f0/universal_text_file_20220720.0.0_d58797df/universal_text_file.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6d765eb9-cf28-4dfb-8735-26870ac617f0/universal_text_file_20220720.0.0_d58797df/universal_text_file.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 stderr: ALIRE.CHECKED_ERROR stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6d765eb9-cf28-4dfb-8735-26870ac617f0/universal_text_file_20220720.0.0_d58797df/universal_text_file.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 stderr: raised ALIRE.CHECKED_ERROR : alire-stored-error:1 [/usr/bin/alr] 0xe75bc6 Alire.Raise_Checked_Error at alire.adb:284 0xac1a54 Alire.Os_Lib.Subprocess.Checked_Spawn at alire-os_lib-subprocess.adb:111 0xd40276 Alire.Spawn.Command at alire-spawn.adb:22 0xd412ee Alire.Spawn.Gprbuild at alire-spawn.adb:68 0xc748cb Alire.Roots.Build at alire-roots.adb:189 0xc7301a Alire.Roots.Build at alire-roots.adb:255 0xc9832b Alire.Roots.Traverse at alire-roots.adb:2143 0xcfee85 Alire.Solutions.Traverse.Visit at alire-solutions.adb:1472 0xcfdfcc Alire.Solutions.Traverse at alire-solutions.adb:1555 0xc9841e Alire.Roots.Traverse at alire-roots.adb:2147 0xc984dd Alire.Roots.Traverse at alire-roots.adb:2127 0xc7359b Alire.Roots.Build at alire-roots.adb:286 0xc736d7 Alire.Roots.Build at alire-roots.adb:114 0x49aa0d Alr.Commands.Build.Execute at alr-commands-build.adb:145 0x49a36d Alr.Commands.Build.Execute at alr-commands-build.adb:113 0x49a51f Alr.Commands.Build.Execute at alr-commands-build.adb:54 0x53bbcc Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749 0x5472be Alr.Commands.Execute at alr-commands.adb:632 0x43d48a Alr.Main at alr-main.adb:13 0x4403a3 Main at b__alr-main.adb:2445 [/lib64/libc.so.6] 0x7fd21b30e5ce 0x7fd21b30e67e [/usr/bin/alr] 0x43d323 _start at ??? 0xfffffffffffffffe stderr: ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED stderr: alire-roots.adb:202 stderr: raised ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED : alire-roots.adb:202 [/usr/bin/alr] 0xc74cc7 Alire.Roots.Build at alire-roots.adb:202 0xc7301a Alire.Roots.Build at alire-roots.adb:255 0xc9832b Alire.Roots.Traverse at alire-roots.adb:2143 0xcfee85 Alire.Solutions.Traverse.Visit at alire-solutions.adb:1472 0xcfdfcc Alire.Solutions.Traverse at alire-solutions.adb:1555 0xc9841e Alire.Roots.Traverse at alire-roots.adb:2147 0xc984dd Alire.Roots.Traverse at alire-roots.adb:2127 0xc7359b Alire.Roots.Build at alire-roots.adb:286 0xc736d7 Alire.Roots.Build at alire-roots.adb:114 0x49aa0d Alr.Commands.Build.Execute at alr-commands-build.adb:145 0x49a36d Alr.Commands.Build.Execute at alr-commands-build.adb:113 0x49a51f Alr.Commands.Build.Execute at alr-commands-build.adb:54 0x53bbcc Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749 0x5472be Alr.Commands.Execute at alr-commands.adb:632 0x43d48a Alr.Main at alr-main.adb:13 0x4403a3 Main at b__alr-main.adb:2445 [/lib64/libc.so.6] 0x7fd21b30e5ce 0x7fd21b30e67e [/usr/bin/alr] 0x43d323 _start at ??? 0xfffffffffffffffe ERROR: Compilation failed.