From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:PJL and PCL" |
|---|
| claim | "file(1) recognises a PJL job as ESC%-12345X (Universal Exit Language) immediately followed by @PJL at offset 0, and then annotates it by searching the first 10000 bytes for the exact, upper-case strings '@PJL ENTER LANGUAGE=' + HBPL, HIPERC, LAVAFLOW, QPDL (also with spaces around =) or ZJS, and for a later '%!' (PJL-encapsulated PostScript); a separate rule matches '@PJL ENTER LANGUAGE=FWUPDATE2' at offset 0 with no UEL (HP firmware update)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "PJL print jobs" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "match 1B 25 2D 31 32 33 34 35 58 40 50 4A 4C at offset 0, then case-sensitive search of the first 10000 bytes for the listed '@PJL ENTER LANGUAGE=<name>' strings" |
|---|
| indicator | "ESC%-12345X@PJL" |
|---|
| table | "the source comment says case and spacing vary between drivers, but the magic only lists upper-case LANGUAGE=, plus one spaced form for QPDL; PCL, PCLXL and POSTSCRIPT language names are not in this rule list; FWUPDATE2 is a separate offset-0 rule without UEL" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "rules for HP Printer Job Language data and the search/10000 language checks" |
|---|
| repo | "file/file" |
|---|
| commit | "4ee5ca8fb938c3168bcededd0ce7c2e03daea485" |
|---|
| path | "magic/Magdir/printer" |
|---|
| lines | "81-108" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PJL language switch" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:38:08.597Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:27:48.171Z" |
|---|
| result | "confirmed" |
|---|
| method | "Downloaded file(1) Magdir/printer at 4ee5ca8f and read lines 76-110: UEL+@PJL level-0 rule, children search/10000 for the six exact upper-case LANGUAGE strings (QPDL also with spaces), '%!' search, and separate offset-0 FWUPDATE2 rule." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:11:51.938Z" |
|---|
| summary | "The language rules in file(1) are case-sensitive exact strings for six names, not a general search; FWUPDATE2 is a separate rule at offset 0 without the UEL; read printer lines 76-110." |
|---|
| changed | |
|---|
|
|
|---|