Checked against version 8.0 of GS1 standard

This commit is contained in:
hooper114 2009-01-09 08:45:56 +00:00
parent 38b8de26e4
commit 3768b65d3e

View File

@ -112,8 +112,8 @@ int gs1_verify(struct zint_symbol *symbol, unsigned char source[], char reduced[
ai_string[2] = '\0';
last_ai = atoi(ai_string);
ai_latch = 0;
/* The following values from GS1 specification figure 5.3.8.2.1 - 1
"Element Strings with Pre-Defined Length Using Application Identifiers" */
/* The following values from "GS-1 General Specification version 8.0 issue 2, May 2008"
figure 5.4.8.2.1 - 1 "Element Strings with Pre-Defined Length Using Application Identifiers" */
if((last_ai >= 0) && (last_ai <= 4)) { ai_latch = 1; }
if((last_ai >= 11) && (last_ai <= 20)) { ai_latch = 1; }
if(last_ai == 23) { ai_latch = 1; } /* legacy support - see 5.3.8.2.2 */