Menu

WordPerfect to LaTeX converter / News: Recent posts

Stupid problem: sync-fetch-sub returns different value than interlockeddecrement

This is the cause:
https://www.ibm.com/docs/vi/xcfbg/121.141?topic=functions-sync-fetch-sub
The function returns the initial value of the variable that __p points to.
https://learn.microsoft.com/en-us/windows/win32/api/winnt/nf-winnt-interlockeddecrement
The function returns the resulting decremented value.
:(

Different return value causes that on Windows no leak occurs, but on all unix systems
decreasing ussage counter does not cause releasing memory.
~~~
if(I->Raster!=NULL)
{
if(InterlockedDecrement(&I->Raster->UsageCount)<=0)
delete I->Raster;
I->Raster = NULL;
}
~~~... read more

Posted by Jaroslav Fojtik 2025-03-02 Labels: bug

New WP2LaTeX 4.12 is out - arabic glyphs

WP2LaTeX 4.12 attempts to convert arabic glyphs. I have no relevant WordPerfect document that contains arabic text. Please help if you have something.

Also please try to convert attached document with LaTeX.

Posted by Jaroslav Fojtik 2024-11-04

Problem with new a GCC has been solved

WP2LaTeX's tests passed on all Debian compile farm builders: https://buildd.debian.org/status/package.php?p=wp2latex&suite=sid

Posted by Jaroslav Fojtik 2024-10-19

Please do not use GCC 14.2 to compile WP2LaTeX, older GCCs are OK

Please do not use GCC 14.2 to compile WP2LaTeX, older GCCs seems to be OK. I has been added extended check addressed for this issue into wp2latex-4.10c.zip .

~~~


<<<struct>>> (c)1998-2024 Jaroslav Fojtik
This program tests the struct.c library
LO_ENDIAN defined
NATIVE access
Testing file operations
Testing struct manipulation
Testing memory access macros
.............. Test passed OK ..............
make[1]: Leaving directory '/o/src/wp2latex/trunk/sources.cc/atoms'... read more</struct>

Posted by Jaroslav Fojtik 2024-09-16

Problem in ICO file handling

The background image library https://ftsoft.com.cz/pictures/pictures.html had severe problems with not fully tested ICO file handling. These problems are fixed now, but the code will be propagated to WP2LaTeX 4.10. The workaround is included in WP2LaTeX 4.9b.

The workaround is to edit a file wp2latex-XXX\sources.cc\images\imgsupp.h.in and set SupportICO to 0 on several places:
#define SupportICO 0
this will block rarely used piece of code.

Posted by Jaroslav Fojtik 2024-08-29

Bug into images library, all bin/win64/wp2latex.exe erased

All bin/win64/wp2latex.exe erased for whole 4.x serie. There has been discovered severe bug that affects only 64 bit windows build. Will be fully fixed in the next version.

Posted by Jaroslav Fojtik 2024-05-17

WP2LaTeX 4.6 is out

WP2LaTeX 4.6 is out http://ftsoft.com.cz/wp2latex/wp2latex.htm . Windows installer is available, source package will be ready soon.

Posted by Jaroslav Fojtik 2024-04-25

New www page for WP2LaTeX

WP2LaTeX has been hosted 20 years on Penguin.cz. This server has been definitively crashed and abandoned.

This is a new location of WP2LaTeX: http://ftsoft.com.cz/wp2latex/wp2latex.htm

Posted by Jaroslav Fojtik 2024-03-26
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.