Changeset 957
- Timestamp:
- 2000-02-22T10:45:08+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cstr/src/recpt/cstrlibrarymain.cpp
r911 r957 28 28 /* 29 29 $Log$ 30 Revision 1.3 2000/02/21 21:45:08 sjboddie 31 gsdlhome now set from gsdlsite.cfg 32 30 33 Revision 1.2 2000/02/06 21:25:22 sjboddie 31 34 updated cstr … … 67 70 #include "htmlbrowserclass.h" 68 71 69 #include "gsdlhome.h" 70 72 #include "recptconfig.h" 71 73 72 74 int main () { … … 77 79 text_tarray collections; 78 80 collections.push_back ("cstr"); 81 82 // get gsdlhome (if we fail the error will be picked up later -- in 83 // cgiwrapper) 84 text_t gsdlhome; 85 site_cfg_read (gsdlhome); 79 86 80 87 text_tarray::const_iterator thiscol = collections.begin(); … … 127 134 recpt.add_converter ("u", &utf8inconvert, &utf8outconvert); 128 135 129 mapinconvertclass gbinconvert; 130 gbinconvert.setmapfile (GSDL_GSDLHOME, "gbku", 0x25a1); 131 mapoutconvertclass gboutconvert; 132 gboutconvert.setmapfile (GSDL_GSDLHOME, "ugbk", 0xa1f5); 133 recpt.add_converter ("g", &gbinconvert, &gboutconvert); 136 if (!gsdlhome.empty()) { 137 mapinconvertclass gbinconvert; 138 gbinconvert.setmapfile (gsdlhome, "gbku", 0x25a1); 139 mapoutconvertclass gboutconvert; 140 gboutconvert.setmapfile (gsdlhome, "ugbk", 0xa1f5); 141 recpt.add_converter ("g", &gbinconvert, &gboutconvert); 142 } 134 143 135 144 // the list of actions. Note: these actions will become invalid
Note:
See TracChangeset
for help on using the changeset viewer.