| SLA Status | Assignee | Support Status |
|---|---|---|
| SLA Closed. Met after 49 hours |
MStokowski |
Awaiting Customer Response |
LTspice
Production
LTspice® is a powerful, fast, and free SPICE simulator software, schematic capture and waveform viewer with enhancements and models for improving the simulation...
LTspice on Analog.com
For engineers who share simulations with one another, it is critical that their files be forwards and backwards compatible. Old LTspice simulations must work (exactly the same, if possible) on newer LTspice versions - and simulations that were created on newer versions must work on older versions too - as long as they do not exploit new features or components that the older version did not have.
That compatibility has been violated here. I have been seeing it for a while, but did not track it down until today.
The problem being considered here is with the Plot Settings (*.PLT) file. If there is a micro (µ) symbol to be saved to the Plot Settings file, LTspice 26 corrupts it by saving it as a 2-byte combination. Previous LTspice versions did not do that. They saved the micro character as the normal 1-byte micro character in the ANSI extended ASCII character set, 0xB5. LTspice has used that 1-byte micro character since forever, and still uses it. It is found in every LTspice schematic that has values in microFarads or microHenries. But now LTspice seems to be unable to write it to a .PLT file.
And that causes the compatibility problem. Plot Settings files saved by LTspice 26 and contain a micro character, can not be read by older versions of LTspice.
Here is a line copied from a .PLT file written by LTspice 26:
X: ('µ',0,0.00046,2e-05,0.00068)
Here is the same line copied from a .PLT file from LTspice XVII:
X: ('µ',0,0.00046,2e-005,0.00068)
As you can see, LTspice 26 saved the "µ" character as "µ". LTspice XVII does not understand the corrupted combination with the "Â" byte, so it rejects the .PLT file. That is unacceptable.
Please fix LTspice 26, so that it correctly saves a "µ" as the non-Unicode "µ" (0xB5) like it used to do, without altering or corrupting it. There is no need for it to do that. Please restore LTspice's previous behavior, where it understood what a µ character was and does not try to cobble it.
I should point out that LTspice 26 does not have this deficiency when saving schematic or symbol files. It seems to be only the Plot Settings (.PLT) file that is being corrupted.
Thanks,
Andy
Hi AndyI ,
Yes, I see. Do you have a sample PLT file we can play with? I'm assuming you did all work in LTspice, including any direct edits of the PLT? Thanks.
mike
Mike,
I have attached two .PLT files here. Both illustrate the problem with the micro symbol in LTspice 26. They were sent to me by two individuals. Presumably both were saved from LTspice and have not been altered since, except for renaming them (which was done in the usual way from Windows Explorer). As far as I know, no direct edits were made of either .PLT file, so they are exactly as LTspice saved them.
Andy
Hi AndyI ,
Great, thanks. I'll try to reproduce. My hunch is that this is a with PLT-specific oversight wrt the sync'ing of all the save functions to UTF-8. Been wrong with these hunches before.
mike
Hi AndyI ,
Great, thanks. I'll try to reproduce. My hunch is that this is a with PLT-specific oversight wrt the sync'ing of all the save functions to UTF-8. Been wrong with these hunches before.
mike