File: unicodeinfo.c

package info (click to toggle)
cone 0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 31,040 kB
  • ctags: 13,930
  • sloc: ansic: 90,648; cpp: 79,781; sh: 18,355; perl: 3,218; makefile: 1,611; yacc: 289; sed: 16
file content (30 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
** Copyright 2000-2003 Double Precision, Inc.
** See COPYING for distribution information.
**
** $Id: unicodeinfo.c,v 1.2 2003/03/07 00:47:31 mrsam Exp $
*/

#include	"unicode_config.h"
#include	"unicode.h"
#include	<string.h>
#include	<stdlib.h>
#include	<stdio.h>

int main()
{
int i;
const char *c, *d;

	for (i=0; unicode_chsetlist[i].chsetname; i++)
		printf("chset=%s\n", unicode_chsetlist[i].chsetname);

	c=unicode_default_chset();
	d=unicode_find(c)->chset;

	printf("default_chset=%s\n", c);
	printf("real_default_chset=%s\n", d);

	exit(0);
	return (0);
}