Go Back
1 Vote

unix and windows support for relative files


It would be great if synergy read and write statements with relative files could automatically detect whether the records are terminated with LF (unix) or CR LF (windows) and handle this accordingly.

It is not an issue with ISAM files, just relative files.

to give a bit of context, I have a windows development machine with a UNIX WSL installation on it.  To run the character cell application under UNIX my relative files need to have records terminated with LF.   But when I run Harmony Core it runs as a windows .net process, which expects the relative files to have records terminated with CR LF.

My day involves several cycles of HC or the Unix app hanging, getting killed off, UNIX2DOS or DOS2UNIX ran on the required Relative files and then rerun.

So this is just a request for the language to handle this for me, as it does with ISAM files

3 Comments | Posted by Gordon Ireland to Synergy DBL, Synergy DBMS on 10/8/2025, 2:05 PM
Steve Ives
If your data is on the Linux side then you should almost certainly be running the Harmony Core service on the Linux side, not the WIndows side.

10/9/2025, 4:12 PM   0  
Gordon Ireland
I start HC from VS, which is windows
 

10/9/2025, 4:28 PM   0  
Steve Ives
Understood, and that's the problem. Text file line endings are not a DBL thing, they are an operating system thing. Make sure the text files you access (on Windows and Linux relative files are just text files) have the correct line endings to match the O/S you're running on, which is what you're doing with dos2unix and unix2dos. In your scenario, with your customers runtime enironment being Linux, the best place for the data is on Linux, and the best place for the code to run (including Harmony Core) is on Linux. Bear in mind that doing this does not prevent you from attaching a debugger and debugging. You can still BUILD the Harmony Core service the same way, on Windows, and the binaries can live on Windows, but the best place for the data, and to run things, is on the Linux side.

10/9/2025, 4:35 PM   0  
Please log in to comment on this idea.