table of contents
| XpSetLocaleHinter(3Xp) | XPRINT FUNCTIONS | XpSetLocaleHinter(3Xp) |
NAME¶
XpSetLocaleHinter - Sets a "locale hinter" function and description of it.SYNOPSIS¶
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h> void XpSetLocaleHinter ( hinter_proc hinter_desc )
XPHinterProc hinter_proc;
char * hinter_desc;
ARGUMENTS¶
- hinter_proc
- A pointer to a "hinter proc".
- hinter_desc
- A pointer to contextual information about the locale hinter proc.
DESCRIPTION¶
Since (to date) there is no single industry standard for locale values, locale information about the current client required by XpCreateContext, XpGetPrinterList and XpGetPdmStartParams is at best considered a "hint" when transmitted to the X Print Server and PDM. In single vendor environments, the locale hint should be consistent and understood. In multi-vendor environments however, the locale hint may or may not be understood. The caller locale will be used as the fallback default.XpSetLocaleHinter( my_hinter, "%locale%;CDElocale" );
char *my_hinter()
{
/∗
* Use setlocale() to retrieve the current locale.
*/
return( my_x_strdup( setlocale(LC_CTYPE, (char *) NULL) ) );
}
name_spec[;registry_spec[;ver_spec[;encoding_spec]]]
STRUCTURES¶
The signature for hinter_proc is defined in <X11/extensions/Print.h> as follows: typedef char * (*XPHinterProc)();
hinter_proc is expected to return a string that can be freed using XFree
by the Xp calls themselves.
CFRENCH CFRENCH
%locale% C
%locale%;CDElocale C;CDElocale
%locale%;HP C;HP
%locale%;IBM C;IBM
%locale%;XOPEN;01_11;XFN-001001 de_DE;XOPEN;01_11;XFN-001001
FILES¶
- <X11/extensions/Print.h>
SEE ALSO¶
XpCreateContext(3Xp), XpGetLocaleHinter(3Xp), XpGetPdmStartParams(3Xp), XpGetPrinterList(3Xp), XpSetLocaleHinter(3Xp)| libXp 1.0.0 | X Version 11 |