View Issue Details

IDProjectCategoryView StatusLast Update
0000403fileGeneralpublic2022-11-06 18:32
Reporterpinymantis Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformThinkpadOSLinuxOS VersionOpenSuse Leap 15
Fixed in VersionHEAD 
Summary0000403: Any text file containing a line starting with "PROC" identified as Algol 68 source text
DescriptionNote: 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 ReproduceRun
```
#! /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 Informationtest 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.
TagsNo tags attached.

Activities

pinymantis

2022-11-06 10:04

reporter  

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


ptest (558 bytes)   

christos

2022-11-06 18:32

manager   ~0003859

Fixed, thanks!

Issue History

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 => HEAD
2022-11-06 18:32 christos Note Added: 0003859