Roland Mainz wrote:
 > What happens with the value of a "ustring" (I assume this means "unicode
 > string", right ?) value in a locale which may not be able to represent
 > some characters in that value, e.g. charatcers outside the BMP (Basic
 > Multilinguar Plane) when the current shell script runs in ja_JP.PCK ...
 > or en_US.ISO8859-1 ?

   I assume you're asking what the output of svcprop is for a property
   of that type?

   To answer your parenthetical question, a ustring is an "8-bit UTF-8
   string" (intended to mean UTF-8-encoded Unicode).

   I believe svcprop emits the UTF-8-encoded string, with (some) special
   characters (e.g. newlines) quoted.  If you view svcprop as a means of
   getting values that can be reliably fed back into SCF (perhaps with
   some processing) to reproduce the original values, this is a good
   thing.  If you expect svcprop to emit localized output, it isn't.
   Since svcprop is primarily intended for scripting purposes, I think
   the former argument is in line with our expectations.

   See print_value() in svcprop.c for the gory details.

   You can find more information on SCF types in scf_value_create(3SCF).

   Dave


Reply via email to