Function Entry: CLAL-CODEPAGE-MISMATCH-P
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: CLAL-CODEPAGE-MISMATCH-P
Name
clal-codepage-mismatch-p
Class
clautolisp Extension Predicate
Syntax
(clal-codepage-mismatch-p)
Arguments and Values
No arguments.
Description
Return T when the canonical DWGCODEPAGE differs from the
canonical SYSCODEPAGE, nil otherwise. Cheap defensive check
before consuming drawing-authored text: a mismatch means strings
authored under one ANSI codepage may garble when interpreted
under another (the classic "Czech-authored drawing read on a
French machine" failure mode).
The comparison runs on the canonicalised form, so
"ANSI_1252" vs "WINDOWS-1252" correctly registers as no
mismatch.
Return Values
T or nil.
Side Effects
None.
Affected By
- Same as
clal-system-codepageandclal-drawing-codepage.
Exceptional Situations
:host-not-supported when host-getvar is unimplemented.
Examples
;; Same codepage on both sides. (clal-codepage-mismatch-p) => nil ;; CP-1250 drawing on a CP-1252 host. (clal-codepage-mismatch-p) => T
Availability
- clautolisp: documented (this entry); implemented since clautolisp 1.0.80.
- AutoCAD: NOT present.
- BricsCAD: NOT present.
Source Notes
- clautolisp-only extension.