Trace output when XWTRACELC=2
Figure 1 is a partial trace showing typical types of information displayed by locale-sensitive routines.
Figure 1. Example of X Application trace output
when XWTRACELC=2
lcPubWrap:_XlcCreateLC(C)
lcCT:_XlcAddCT(ISO8859-1:GL,"(B)
lcCT:_XlcParseCT
lcCT:_XlcGetCharSetFromEncoding( (B)
lcCT:_XlcParseCT returning: 28 charset 0
lcCharSet:_XlcCreateDefaultCharSet(ISO8859-1:GL,""a)
lcCT:_XlcParseCharSet
lcCT:_XlcParseCT
lcCT:_XlcGetCharSetFromEncoding( (B)
lcCT:_XlcParseCT returning: 28 charset 0
lcCharSet:_XlcAddCharSet(ISO8859-1:GL)
lcCharSet:_XlcGetCharSet(ISO8859-1:GL)
returned NULL
lcCT:_XlcAddCT returning: 7f994d8
⋮ (trace statements in this section have been deleted)
lcCT:_XlcAddCT(CNS11643.1986-1:GL,"$(H)
lcCT:_XlcParseCT
lcCT:_XlcGetCharSetFromEncoding( $(H)
lcCT:_XlcParseCT returning: 2428 charset 0
lcCharSet:_XlcCreateDefaultCharSet(CNS11643.1986-1:GL,"""+)
lcCT:_XlcParseCharSet
lcCT:_XlcParseCT
lcCT:_XlcGetCharSetFromEncoding( $(H)
lcCT:_XlcParseCT returning: 2428 charset 0
lcCharSet:_XlcAddCharSet(CNS11643.1986-1:GL)
lcCharSet:_XlcGetCharSet(CNS11643.1986-1:GL)
returned NULL
lcCT:_XlcAddCT returning: 7f9c4e0
lcCT:_XlcAddCT(TIS620.2533-1:GR,"-T)
lcCT:_XlcParseCT
lcCT:_XlcParseCT returning: 80 charset 0
lcFile:_XlcResolveLocaleName(C,""," ""},"2h",)
lcFile:_XlcResolveName(C,/usr/lib/X11/locale/locale.alias)
lcFile:_XlcFileName(7f99420,locale)
lcFile:_XlcResolveLocaleName(C,,"","","")
lcFile:_XlcResolveName(C,/usr/lib/X11/locale/locale.alias)
lcFile:_XlcResolveName(C,/usr/lib/X11/locale/locale.dir)
lcDB:CreateDatabase(/usr/lib/X11/locale/C/XLC_LOCALE)
0: XLC_XLOCALE, cs0.ct_encoding, 1: ISO8859-1: GL,
1: XLC_XLOCALE, cs0.wc_encoding, 1: \x00000000,
2: XLC_XLOCALE, cs0.length, 1: 1,
3: XLC_XLOCALE, cs0.side, 1: GL:Default,
4: XLC_XLOCALE, wc_shift_bits, 1: 8,
5: XLC_XLOCALE, wc_encoding_mask, 1: \x00008080,
6: XLC_XLOCALE, state_depend_encoding, 1: False,
7: XLC_XLOCALE, mb_cur_max, 1: 1,
8: XLC_XLOCALE, encoding_name, 1: STRING,
9: XLC_FONTSET, fs0.font, 1: ISO8859-1:GL,
10: XLC_FONTSET, fs0.charset, 1: ISO8859-1:GL,
***
***
lcDB:_XlcGetResource(7f99420,XLC_XLOCALE,mb_cur_max)
lcDB:_XlcGetLocaleDataBase(7f99420,XLC_XLOCALE,mb_cur_max)
lcDB:_XlcGetResource(7f99420,XLC_XLOCALE,state_dependent)
lcDB:_XlcGetLocaleDataBase(7f99420,XLC_XLOCALE,state_dependent)
returning NULL
lcDB:_XlcGetResource(7f99420,XLC_XLOCALE,encoding_name)
lcDB:_XlcGetLocaleDataBase(7f99420,XLC_XLOCALE,encoding_name)
returning lcd=7f99420
lcFile:_XlcResolveLocaleName(C,"",,"",)
lcFile:_XlcResolveName(C,/usr/lib/X11/locale/locale.alias)
Each line of trace provides:
- The name of the locale routine.
- The function invoked within that locale routine.
- Where pertinent, charset name or encoding information, or charset name and encoding information.
- If exiting the invoked function, the trace statement indicates that the function is returning.