Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2000 11:45:52 +0300
From:      Igor Roboul <igor@raduga.dyndns.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: International Programming?
Message-ID:  <20001031114552.A28944@linux.rainbow>
In-Reply-To: <002001c04247$2fb0c8c0$0800000a@lanfear.com>; from marcw@lanfear.com on Mon, Oct 30, 2000 at 08:58:26AM %2B0100
References:  <002001c04247$2fb0c8c0$0800000a@lanfear.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> that the base strcmp, strcasecmp, and all those that ship in the OS do not
> support DBCS, etc ...
> 
>     where would be a good place to start?
In theory you need only setlocale(LC_ALL,"") in begining of main()
Also, notice that locale equivalent for strcmp() is strcoll()
If you wish compare two strings and don't care about case, then just
use toupper/tolower and use strcoll
I don't know about japanese, but for cyrillic it works.
About localized messages, this depends on type of program you write.
For example, for Motif program it is better use native Motif features, and
you'll not have problems with cyrillic, japanese or hebrew (right-to-left)

-- 
Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", 
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=304744


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001031114552.A28944>