[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Language negotiation and localization of server-generated messages (see URL!)

From: Michael R Sweet <mike_at_easysw.com>
Date: 2005-06-03 00:36:19 CEST

Daniel Rall wrote:
> On Thu, 2005-06-02 at 17:08 -0400, Michael Sweet wrote:
> ...
>
>>I've actually got some code that reads .po files and compiles to a
>>compact binary format, which you can then load and use on-the-fly,
>>even supporting multiple languages from the same thread.
>
>
> Does it use the same format as the .mo files, which are easily mmap'd
> into shared memory?

Since the .mo format isn't documented (at least not that I've found,
anyways), my code uses its own binary format that is "compiled" from
the .po files. It is conceivable that you could mmap() the files,
however I've avoided any non-portable constructs and just read the
files using stdio functions.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 3 00:37:22 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.