xgettext (Re: replication of stuff in /usr/gnu)

Roland Mainz roland.mainz at nrubsig.org
Thu Jul 12 11:33:08 PDT 2007


Nicolas Williams wrote:
> 
> Speaking of GNU stuff that should be better integrated into Solaris, the
> GNU xgettext is a strict superset of the Solaris xgettext, and it has
> important features.

Are you talking about "xgettext" for shell scripts ? IMO this tool
should be _depreciated_ because there are several _design_ issues with
it (and the GNU version, too), for example that it doesn't work properly
with different encodings or when the encoding is switched at shell
runtime (and the performance is not very good)).
Both ksh93 and bash implemented native localisation support via
$"..."-string literals (e.g. it's like normal shell string literals
exect that you put a '$' in front of the literal - the shell will then
lookup this string in the current l10n catalog) to avoid these problems
and IMO the usage of "xgettext" (both Solaris and GNU) should be
incrementally removed from Solaris.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)



More information about the opensolaris-arc mailing list