Chapter 13. Examples of I18N
104
Status
I18N_GetIconName(dpy, w, iconname)
Display *dpy;
Window w;
char ** iconname;
{
int
status;
XTextProperty text_prop;
char **list;
int
num;
status = XGetWMIconName(dpy, w, &text_prop);
if (!status || !text_prop.value || !text_prop.nitems) return 0;
status = XmbTextPropertyToTextList(dpy, &text_prop, &list, &num);
if (status < Success || !num || !*list) return 0;
XFree(text_prop.value);
*iconname = (char *)strdup(*list);
XFreeStringList(list);
return 1;
}
13.1.10 Configuration File Parser
The parser for configuration file was not 8bit clean. I modified it. It was a very minor change. In
parse.c
, global variables of
buff[]
,
overflowbuff[]
,
stringListSource
, and
currentString
and auto variable of
sl
in
ParseStringList()
are changed from
char
to
unsigned char
.
13.2 8bit clean ize of Minicom
The author of this section is Tomohiro KUBOTA (
).
I needed a serial communication software to connect to BBS, though I had a MS DOS version. I
tried several softwares and found Minicom but it could not display Japanese characters in kterm.
Thus I decided to modify the source of Minicom. Though it was dirty 'quick hacking', I sent the
patch to the upstream developer.
13.2.1 8bit clean ize
Minicom is written in C.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

indiana web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved