LibreDWG 0.14.8597 (nightly build) - binaries bundled with ASH Draw Studio
==============================================================

What these files are
--------------------
The files in this folder are a MODIFIED version of GNU LibreDWG version
0.14.8597. ASH Technical & Project Management Services (ASH PMCS) modified
them on 2026-10-18; they are built from the unmodified upstream source
release with one patch applied, libredwg-llp64-bitpos.patch (a copy is in this
folder). The patch fixes two bugs. In src/bits.c (64-bit Windows): once a
drawing's decompressed data passed 256 MiB, reads were reported as "buffer
underflow" and restarted from byte 0, so large drawings converted to nearly
empty files. In src/out_dxf.c: writing a block that holds a POLYLINE or an
attributed INSERT advanced the loop over block headers, so the blocks after it
were left out of the DXF (walls, tags and symbols missing).

Archive: libredwg-0.14.8597-llp64-win64.zip
  SHA-256 of that archive: 4d2a36261ed0dfe3a96a2fb9b1d609a644f2da75012c7a1f554a7051aac66e96

Files (SHA-256):
  f852578f0bb393484d9bae10fccf0843d38e13406d846c6c0640b1ba83044374  dwg2dxf.exe
  48a32855a489c24c791763d25d481ffc71b2981b7ff6a1a1f6035de800d15eed  dxf2dwg.exe
  867068b7be269f02eb17acd7d937c1ca84aa4e45d3d9cf873c740c50402c34a3  libredwg-0.dll
  ff31fa811f9c07cc7fdaa68c9e8bca3a7b4fdf6e0a079a58175ea58ba139c7ae  libiconv-2.dll

libiconv-2.dll is taken byte-for-byte from the official upstream LibreDWG Windows
x64 release archive (https://github.com/LibreDWG/libredwg/releases/download/0.14.8597/libredwg-0.14.8597-win64.zip,
SHA-256 7fee5c67c4f451f0542c0d6a3b12e91e99b15faf363fbf8b98ad84bac17ddfa2).

LibreDWG is free software, Copyright (C) Free Software Foundation, Inc., licensed
under the GNU General Public License version 3 or (at your option) any later
version (GPL-3.0-or-later). The full licence text is in the file COPYING in this
folder. These programs come with ABSOLUTELY NO WARRANTY.

libiconv-2.dll is GNU libiconv (Copyright (C) Free Software Foundation, Inc.), licensed
under the GNU Lesser General Public License version 2.1 or later. It is an unmodified
separate DLL that is only used by libredwg-0.dll; you may replace it with any
compatible build of libiconv 2.x. It is the unmodified GNU libiconv as distributed
in the upstream LibreDWG Windows archive libredwg-0.14.8597-win64.zip (the version shipped
in that archive); its source code is available at no charge from
https://ftp.gnu.org/pub/gnu/libiconv/ and is covered by the written offer below.

How ASH Draw Studio uses them
-----------------------------
ASH Draw Studio is a separate program licensed under the MIT licence. It does not
link to, load or embed LibreDWG. When you open or save a DWG file, ASH Draw Studio
runs dwg2dxf.exe or dxf2dwg.exe as an independent child process with a temporary
input file and reads back the converted output file. You may replace these
executables with any other build of LibreDWG you prefer.

Corresponding source code
-------------------------
The complete corresponding source code for these binaries consists of:

  1. The LibreDWG 0.14.8597 release source tarball, available at no charge from
       https://github.com/LibreDWG/libredwg/releases/tag/0.14.8597
       https://github.com/LibreDWG/libredwg/releases/download/0.14.8597/libredwg-0.14.8597.tar.xz
       (SHA-256 of libredwg-0.14.8597.tar.xz: af2646681858a78d756cfb9e0eeb6901f61be3d09ae8f56a98e94b1490dec4ed)
  2. The patch libredwg-llp64-bitpos.patch (in this folder, and in
     tools/libredwg-win/ of the ASH Draw Studio source, https://github.com/abbas437/ash-draw).
  3. The build scripts in tools/libredwg-win/ (build-patched.sh, build-win64.sh, package-win64.sh, deps/libiconv-2/),
     which cross-compile the patched source with the mingw-w64 toolchain of
     Ubuntu (apt-get install mingw-w64).

All three are also attached to each tagged ASH Draw Studio release on the page
from which the installer is distributed, as libredwg-0.14.8597.tar.xz,
libredwg-0.14.8597-llp64-bitpos.patch and libredwg-0.14.8597-win64-build-tools.tar.gz.

Written offer
-------------
For at least three (3) years from the date you received this copy, and for as
long as ASH Draw Studio distributes these binaries, ASH Technical & Project
Management Services (ASH PMCS) will give any third party, on request, a complete
machine-readable copy of the corresponding source code of LibreDWG 0.14.8597 as listed above (source tarball, patch and build scripts)
and of the GNU libiconv library libiconv-2.dll
for no more than the cost of physically performing the transfer. Requests can be
made by opening an issue at https://github.com/abbas437/ash-draw/issues.
