View Issue Details

IDProjectCategoryView StatusLast Update
0000507fileGeneralpublic2024-04-14 00:51
Reporterpolluks Assigned Tochristos  
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
PlatformMacBookAir14,2OSmacOSOS Version14.3.1
Product Version5.45 
Summary0000507: Identify CSI as ESC
DescriptionA patch to look an 8 bit escape like a 7 bit escape.
Additional Information--- file-5.45/src/ascmagic.c 2023-05-30 22:17:50.000000000 +0200
+++ ./ascmagic.c 2024-03-01 20:55:42.000000000 +0100
@@ -199,7 +199,7 @@
                                has_long_lines = ll;
                }
 
- if (ubuf[i] == '\033')
+ if ((ubuf[i] & 127) == '\033')
                        has_escapes = 1;
                if (ubuf[i] == '\b')
                        has_backspace = 1;
TagsNo tags attached.

Activities

christos

2024-04-07 21:25

manager   ~0004028

That matches '['? why should that print it has escapes?

polluks

2024-04-14 00:51

reporter   ~0004035

It doesn't match a bracket but a Control Sequence Introducer (a short form of escape+'['). Some kind of hidden escape.

Issue History

Date Modified Username Field Change
2024-03-07 23:20 polluks New Issue
2024-04-07 21:24 christos Assigned To => christos
2024-04-07 21:24 christos Status new => assigned
2024-04-07 21:25 christos Status assigned => new
2024-04-07 21:25 christos Note Added: 0004028
2024-04-14 00:51 polluks Note Added: 0004035