View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000403 | file | General | public | 2022-11-06 10:04 | 2022-11-06 18:32 |
Reporter | pinymantis | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Thinkpad | OS | Linux | OS Version | OpenSuse Leap 15 |
Fixed in Version | 5.44 | ||||
Summary | 0000403: Any text file containing a line starting with "PROC" identified as Algol 68 source text | ||||
Description | Note: This is related to https://bugs.astron.com/view.php?id=49 Any text file containing a line starting with "PROC" is identified as Algol 68 source text. This is at least irritating. | ||||
Steps To Reproduce | Run ``` #! /bin/bash echo "PROC" > t1 echo " PROC" > t2 echo "PROC " > t3 echo "PROCESSOR" > t4 echo "PROCX" > t5 cat << EOF > t6 MACHINE INFORMATION Machine Manufacturer: LENOVO Machine Type-Model(MTM): XXXX Product Version: ThinkPad XXXX Serial Number: XXXX Eth Physical Address: XX-XX BIOS INFORMATION BIOS Version: N3EET22W (1.08 ) BIOS Release Date: 07/21/2022 BIOS Manufacturer: LENOVO EC Version: N3EHT18W(1.08) Intel ME Version: 16.1.25.1932 PROCESSOR INFORMATION XXXX XXXX ... EOF for f in t1 t2 t3 t4 t5 t6; do file $f done ``` and the result will be t1: Algol 68 source, ASCII text t2: ASCII text t3: Algol 68 source, ASCII text t4: Algol 68 source, ASCII text t5: Algol 68 source, ASCII text t6: Algol 68 source, ASCII text | ||||
Additional Information | test code `ptest` attached Motivation: Information from the UEFI-BIOS is UTF-16 encoded and needs to be converted to UTF-8 to be useful on (std) Linux. | ||||
Tags | No tags attached. | ||||
|
ptest (558 bytes)
#! /bin/bash echo "PROC" > t1 echo " PROC" > t2 echo "PROC " > t3 echo "PROCESSOR" > t4 echo "PROCX" > t5 cat << EOF > t6 MACHINE INFORMATION Machine Manufacturer: LENOVO Machine Type-Model(MTM): XXXX Product Version: ThinkPad XXXX Serial Number: XXXX Eth Physical Address: XX-XX BIOS INFORMATION BIOS Version: N3EET22W (1.08 ) BIOS Release Date: 07/21/2022 BIOS Manufacturer: LENOVO EC Version: N3EHT18W(1.08) Intel ME Version: 16.1.25.1932 PROCESSOR INFORMATION XXXX XXXX ... EOF for f in t1 t2 t3 t4 t5 t6; do file $f done |
|
Fixed, thanks! |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-11-06 10:04 | pinymantis | New Issue | |
2022-11-06 10:04 | pinymantis | File Added: ptest | |
2022-11-06 18:31 | christos | Assigned To | => christos |
2022-11-06 18:31 | christos | Status | new => assigned |
2022-11-06 18:32 | christos | Status | assigned => resolved |
2022-11-06 18:32 | christos | Resolution | open => fixed |
2022-11-06 18:32 | christos | Fixed in Version | => 5.44 |
2022-11-06 18:32 | christos | Note Added: 0003859 |