Bug 690601

Summary: initialize internal_symbol_sets before internal_fonts
Product: GhostPCL Reporter: norbert.janssen
Component: PCL interpreterAssignee: Henry Stiles <henry.stiles>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: master   
Hardware: PC   
OS: Windows XP   
Customer: 661 Word Size: ---

Description norbert.janssen 2009-07-06 01:32:08 UTC
in pcl_set_current_font_environment() the built_in_fonts are loaded. But before
you could use them, the built_in_symbol_sets should be available.
At this point (during pcl_reset_initial) the symbolsets are not yet installed.
See pcl_init_table[] in pctop.c, pcfont_init is before pcsymbol_init.

I think that pcsymbol_init should be executed before pcfont_init.
Comment 1 Henry Stiles 2009-07-06 10:30:19 UTC
We'd like initialization to be free from ordering, there are cases where this is
not possible, but it isn't clear this is one of the cases.  Is there an
uninitialized read or a bug associated with this?
Comment 2 norbert.janssen 2009-07-06 11:02:27 UTC
During font-init the pcs->built_in_symbolset is not installed yet.
In pcl_set_current_font_environment() the fontnumber is loaded. If the font is
bound (i.e. SYMBOL), this also requires the SYMBOLSET to be set.
For compatibility with our other interpreter I wanted to see if I could do this
automagically. (See also the NB: comment on the fontnumber being stepped on).
Comment 3 Henry Stiles 2009-08-02 21:45:00 UTC
fixed in rev 9929.
Comment 4 Marcos H. Woehrmann 2011-09-18 21:47:59 UTC
Changing customer bugs that have been resolved more than a year ago to closed.