Robin Stuart
68fdae09c3
Prevent possible buffer overrun
...
Spotted by Milton Neal
2018-04-06 10:50:19 +01:00
Robin Stuart
75803e8aa2
Enhanced data length checks for GS1 data
...
Brought up to date with revision 18 of the GS1 General Specifications
Enhancement suggested by Roman Schnider <r.schnider@cab.de>
2018-03-30 18:46:33 +01:00
Robin Stuart
e6618f1a1b
Allow escape character processing in batch mode
...
Suggested by Martin Zizka, Fixes #96
2018-03-30 11:40:44 +01:00
Robin Stuart
9a5e5f3a9a
Rename variable to avoid keyword in VS
2018-03-30 09:46:54 +01:00
Robin Stuart
57075248ff
Remove error correction bug for Australia Post symbols
...
Bug found by Milton Neal <miltonneal@bigpond.com>
2018-03-15 19:17:34 +00:00
Robin Stuart
749eb55321
Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
...
Thanks to work being done at SF!
2018-02-15 10:47:59 +00:00
Robin Stuart
ffd1ed2d6b
Update version number to 2.6.3
2018-02-15 10:46:02 +00:00
Robin Stuart
8bd26f5e83
Open EMF files in binary mode
2018-02-13 18:32:26 +00:00
Harald Oehlmann
ee763cb135
Do not free _alloca data
2018-02-13 16:53:12 +01:00
Robin Stuart
fa3c150610
Force TIFF to always use more than one strip
2018-02-11 13:01:43 +00:00
Robin Stuart
78d85bd72e
Add font size option for SVG and EPS
2018-02-11 09:55:28 +00:00
Robin Stuart
8bb4d2ce86
Improved binary multiplication for large numbers
2018-02-11 08:00:32 +00:00
Robin Stuart
f655eabc12
Add trailing spaces to Mailmark if not present in input data
2018-02-10 07:26:33 +00:00
Robin Stuart
389bcce10f
Add Royal Mail Mailmark to front end
2018-02-09 20:55:17 +00:00
Robin Stuart
59116f689d
Add new symbology: Royal Mail Mailmark
2018-02-06 20:57:01 +00:00
Robin Stuart
37d3e60c3a
Allow lowercase input for VIN codes
2018-02-04 08:42:01 +00:00
Robin Stuart
e737f992b5
Add verification for North America VIN (Vehicle Identification Number)
2018-02-03 18:44:01 +00:00
Robin Stuart
38150ce931
Correctly add leading zeroes to Australia Post symbols
...
Bug fix by Erik Salaj <eriksalaj@gmail.com>
2018-02-03 11:41:35 +00:00
Robin Stuart
3aeb1ea70a
Make EAN and UPC symbols resizable in glabels in accordance with EN 797:1996
...
As requested by Sebastien Marie <semarie@online.fr>
2018-01-29 19:12:30 +00:00
Robin Stuart
0d4af7a462
Resolve further error message and warning idiosyncrasies
2018-01-21 18:10:42 +00:00
Robin Stuart
d2161ffb20
Make CLI errors more consistent
...
Should now output errors and warnings in a consistent and predictable fashion. This is not a neat solution, but functional for now.
2018-01-21 14:33:54 +00:00
Robin Stuart
ae57d413bf
UTF duplication error
...
Removes error duplicating UTF data when using ECI 26
2018-01-21 11:50:49 +00:00
Harald Oehlmann
7cb5eec35a
Fix -esc crash for windows
2018-01-14 17:47:02 +01:00
Robin Stuart
782a3a6f39
Include terminator in esc processed string
...
Attempts to fix #89 reported by Matt Johnson
2018-01-13 15:45:26 +00:00
Robin Stuart
670000b7ea
Improve wording of error 227
...
Fixes #87 reported by Ken Yap
2017-12-24 14:51:12 +00:00
Harald Oehlmann
9f50714b44
Added DMRE size 26x40
2017-12-19 19:00:33 +01:00
Robin Stuart
d7ac9cc00f
Enforce PostNet and PLANET lengths
...
Fix suggested by Milton Neal
2017-12-10 19:42:02 +00:00
Robin Stuart
1057bb9fa5
Fix free memory when not allocated
...
Bug fix by Alex Haley <ahaley@meditech.com>
2017-11-07 20:26:00 +00:00
Robin Stuart
58537edf0a
Remove debug message
2017-11-05 14:32:42 +00:00
Robin Stuart
ddce98a1bb
Correct processing of escape char mode
2017-11-05 14:27:01 +00:00
Boris Zentner
31cc0ae78a
Remove spaces before EOL
2017-10-25 17:23:57 +01:00
Boris Zentner
45441a6da7
Fix mixed unix / windows EOL
2017-10-25 17:15:35 +01:00
Harald Oehlmann
4b03bccba0
Make compile with MS-VC and set release version 2.6.2 in various files
...
Attention: qtzint.exe core dumpfs for me
2017-10-23 17:07:30 +02:00
Robin Stuart
73c9b502b5
Update version to 2.6.2
...
Plus some tidying up in preperation for new release
2017-10-22 12:39:37 +01:00
Robin Stuart
29dbb49325
Add escape sequence support to GUI
...
Also ensures that CR/LF formatted files remain unaltered when importing
Fixes #72 reported by Siniša Sudec
2017-10-22 10:55:50 +01:00
Robin Stuart
0314ca65a8
Move escape character processing into library
...
And expand to include all 8-bit values.
2017-10-21 12:45:50 +01:00
Jojakim Stahl
aa64c55787
Height / width adjustment for certain symbologies with fixed requirements must be done before calculating the scaler
2017-10-18 11:40:20 +02:00
Jojakim Stahl
2b79940d33
Fixed rendered->height calculation for EAN like barcodes
2017-10-18 11:40:20 +02:00
Jojakim Stahl
3bbc188217
Fixed bug introduced in bfb183e5df
with utf8 input be trucated at length - 3
2017-10-18 11:40:20 +02:00
Jojakim Stahl
6b1421b895
Fixed general_rules declaration in composite.c after refactor in commit [4963a7]
2017-10-18 11:40:20 +02:00
Jojakim Stahl
0a913ad9e3
Adding hexagon height to zint_render_hexagon
2017-10-18 11:40:20 +02:00
Jojakim Stahl
c7d6256a6e
Free symbol->rendered structures on ZBarcode_Clear and repeated calls of ZBarcode_Render
2017-10-18 11:40:19 +02:00
Robin Stuart
50cbbe391b
Merge /u/srachner/zint/ branch master into master
...
https://sourceforge.net/p/zint/code/merge-requests/4/
2017-10-17 16:49:05 +00:00
Harald Oehlmann
f83e5b1501
Make compile with MS-VC6
2017-10-16 19:26:54 +02:00
Sebastian Rachner
20ccbcd4e4
Check compiler before including malloc.h
2017-10-15 12:29:46 +02:00
Robin Stuart
bfb183e5df
Strip BOM from Unicode input data
...
Fixes #76 , reported by Shmupsik
2017-10-09 19:59:02 +01:00
Robin Stuart
4dd31fb674
Reallign bullseye in Maxicode
...
Centre of bullseye in Maxicode symbols drifted from desired position
when printing scale was increased. Affects raster plotted images (BMP, GIF etc.).
Changes how centre position of bullseye is calculated.
2017-10-09 11:17:11 +01:00
Robin Stuart
5bc7399252
Fix problems encoding binary in Aztec mode
...
Bugs found by John Mortlock
Fixes #71
2017-10-04 05:05:58 +01:00
Robin Stuart
4c1c180fbf
Protect DotCode from dimensions smaller than 5
2017-09-30 17:14:45 +01:00
Robin Stuart
411f083f57
Fix Aztec grid population error
...
Resolves X-Y coord flipping reported by John Mortlock
Fixes #70
2017-09-30 13:09:21 +01:00
Rodrigo Torres
4963a772db
Refactor
2017-09-11 19:21:33 +01:00
Robin Stuart
1882d76b70
Update version to 2.6.1
2017-08-27 09:31:02 +01:00
Robin Stuart
86a0071f09
Show correct ECC in function information
2017-08-14 07:47:50 +01:00
Robin Stuart
1ca01e9322
Make data types for tables consistent across symbologies
...
..and reduce library binary size slightly
2017-08-09 09:13:37 +01:00
Robin Stuart
50ec72527b
Minor tweaks, no change of function
2017-08-07 08:37:02 +01:00
Robin Stuart
1f503f2aca
Dedupe error correction code in Aztec
2017-08-06 09:10:00 +01:00
Robin Stuart
608b4b9134
Audit of error codes
2017-07-27 16:01:53 +01:00
Robin Stuart
e81a90bb58
Avoid SIGSEGV on Code 128 input too long
2017-07-26 11:44:47 +01:00
Robin Stuart
24f175b6f6
Flag if DM_SQUARE is used at the same time as symbol size selection
2017-07-26 11:16:54 +01:00
oxy
2e6fb6a109
compile error fixed
2017-07-24 13:44:27 +01:00
oxygenic
91f66ec57d
backported
2017-07-24 13:44:27 +01:00
oxygenic
d8330f5d96
back-merged
2017-07-24 13:44:27 +01:00
Robin Stuart
8ca1329fcf
Allow ECI 26 in Unicode mode
2017-07-23 18:04:58 +01:00
Robin Stuart
451f0150d8
Expand ECI support and enforce binary mode when ECI is set
2017-07-23 17:59:51 +01:00
Robin Stuart
d818d1aecc
Improved Aztec Code bit compression
...
Somewhat fixes #30 reported by Francois Grieu
2017-07-21 17:56:36 +01:00
Julien Nabet
3257a5c0af
cppcheck: fix reports
...
[backend/bmp.c:133]: (error) Memory leak: bitmap
[backend/bmp.c:126]: (error) Memory leak: bitmap
[backend/composite.c:464]: (error) Array index -1 is out of bounds.
[backend/composite.c:507]: (error) Array index -1 is out of bounds.
[backend/dmatrix.c:962]: (style) Redundant condition: i!=0. 'i==0 || (i!=0 && binary[i-1]!='b')' is equivalent to 'i==0 || binary[i-1]!='b''
[backend/raster.c:122]: (error) Memory leak: rotated_pixbuf
[backend/raster.c:506]: (error) Memory leak: pixelbuf
[frontend/main.c:273]: (error) Uninitialized variable: format_string
[frontend_qt/exportwindow.cpp:103]: (style) Array index 'j' is used before limits check.
2017-07-01 09:49:47 +01:00
Robin Stuart
0d6716a773
Add method for dynamically checking version info
...
Suggestion by aragon@phat.za.net for python-zint
2017-07-01 09:06:47 +01:00
Robin Stuart
6306228fed
Remove unnecessary debug code
2017-06-18 13:03:25 +01:00
Robin Stuart
a085bca168
Revion of ECI number encoding
2017-06-18 13:00:22 +01:00
Robin Stuart
c0e95684a9
Reduce size of Code 49 bit pattern table (no change of functionality)
2017-06-10 10:45:42 +01:00
Robin Stuart
17be0440cc
Review of data types to reduce memory usage (no change of functionality)
2017-06-10 10:08:27 +01:00
Robin Stuart
3f7f909644
Simplify PDF binary handling, remove TTF array (no change of functionality)
2017-06-09 22:00:22 +01:00
Robin Stuart
dd2f9e65ba
Further tweaks to binary conversion in QR Code
2017-06-06 21:31:03 +01:00
Robin Stuart
47a64047af
Harmonise binary conversion and expand ECI support in QR Code
2017-06-06 21:11:11 +01:00
Robin Stuart
241bcedaa1
Remove unnecessary estimate of binary bitlength
2017-06-05 20:05:58 +01:00
Robin Stuart
30272dd955
Use more accurate guess of bit length when calculating smallest available version
...
Fixes #66 , Bug report by jthie
2017-06-05 19:17:22 +01:00
Robin Stuart
7b53fc3469
Include version information in UPNQR symbols
...
Fixes #65 , Bug report by Primož Cerar
2017-05-30 08:40:08 +01:00
Robin Stuart
ffcfe965d1
Merge Update Visual Studio sln
...
Code by Cosmic Marc https://sourceforge.net/u/cosmarc/
cd65154a36
/
Fixes https://sourceforge.net/p/zint/code/merge-requests/2/
2017-05-29 11:11:04 +01:00
Robin Stuart
b3a1b24d18
help the compiler create more efficient code
...
Patch from Michael <virtual_worlds@gmx.de>
Full text: As usual I have modified only minor things to remove warnigs when compiled as C++ code, have added some const-specifiers where possible to help the compiler create more efficient code and added some static-specifiers to make functions invisible to other modules.
2017-05-29 10:43:47 +01:00
Cosmin Marc
cd65154a36
Update gitignore.
...
Add to libzint.vcxproj missing files.
Fix missing include in emf.c.
Add x64 configuration.
Change paths to point to extern folder for external libs(lipbng, zlib).
Updated version in rc file.
2017-05-25 20:17:43 +03:00
Robin Stuart
b46bc1f45e
Accept UFT-8 input data for UPNQR
2017-05-21 09:20:03 +01:00
Robin Stuart
b426877a4f
Add new symbology UPNQR
2017-05-20 23:37:50 +01:00
Robin Stuart
847fa6f332
Update DotCode to latest draft (April 24, 2017)
2017-05-19 21:30:31 +01:00
Robin Stuart
a1327cbd0d
Bugfix: Insertion of unlatch character in EDIFACT mode will unlatch immediately, not at the end of the 24-bit block
...
Fixes #60 , Ref: ISO para 5.2.8.2.
Bug report thanks to ice4x800@sf
2017-05-14 18:46:43 +01:00
Robin Stuart
4c8de6399f
Deduplicate GB18030 lookup table
2017-05-14 14:43:49 +01:00
Robin Stuart
6d5fcd14f8
Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
2017-05-14 08:15:55 +01:00
Robin Stuart
19c3755ed0
Simplify conversion to binary with common function
...
No change to functionality
2017-05-14 08:15:08 +01:00
Harald Oehlmann
c52032acb2
Update win c6 makefile and tcl backend to version 2.6.0
2017-05-12 14:16:59 +02:00
Robin Stuart
19ba8a34c4
Update to version 2.6.0 and update copyright to 2017
2017-05-11 21:14:38 +01:00
Robin Stuart
eef59d150e
Prevent control characters from corrupting SVG
...
Bug fix by Maikel Houthuijzen
2017-05-11 20:15:10 +01:00
Robin Stuart
1ec0873caa
Extend Unicode support in Han Xin to Supplementary planes (>= U+10000)
2017-04-23 20:15:50 +01:00
Robin Stuart
92f02c8a67
Kanji works better if data is read to symbol :)
2017-04-21 20:38:19 +01:00
Robin Stuart
a8077535b2
Correct Kanji processing in QR Code
...
Bugfix by Milton Neal <miltonneal@bigpond.com>
2017-04-21 19:55:17 +01:00
Robin Stuart
6f4610aa98
Add verbose mode to output debug info without recompiling
2017-04-11 10:05:38 +01:00
Robin Stuart
5acbffff0d
Consistently throw an error if data does not fit in specified size symbol
...
See ticket #57
2017-04-11 09:26:39 +01:00
Robin Stuart
1ac5298190
Perform calculations on real rather than estimated binary length...
...
...and get correct values for ECC encoding from table D1.
Bugfixes by Milton Neal
2017-04-10 08:06:53 +01:00
Harald Oehlmann
f7753564cf
Codablock: Code A/B character set change corrected
2017-04-03 11:47:39 +02:00
Harald Oehlmann
7494a241ca
Bug fix for Ticket 56: Codablock F: [StartA] was coded as [StartA][SHIFT] resulting in wrong Code and illegal memory access to wrong Code128 pattern
2017-03-30 15:23:14 +02:00
Harald Oehlmann
6bc50a943c
Delete to rectangular DMRE formats 24x32, 24x36, 26x32, 26x40 which will probably not be in ISO/IEC 21741
2017-03-29 19:48:44 +02:00
Harald Oehlmann
480e514754
Make bakcend/dotcode.c, emf.c and tif.c compile with MS-VC6
2017-03-28 18:06:08 +02:00