Uprint Localization Utility - uprint
Purpose
The Uprint is a utility that can help if you are experiencing localization issues with Rational® Test RealTime.
Syntax
uprint
uprint <hex_min>..<hex_max>
uprint --mimename
uprint --utf8 <string>
where:
-
<hex_min> and <hex_max> specify a range of 16-bit unicode characters expressed in hexadecimal notation.
<string> is a character string encoded in the current locale.
Description
When used with no argument, uprint returns the following information about the current locale:
-
Mib name
-
mimeName
-
Locale name
When used with a <hex_min>..<hex_max> argument, uprint also returns a list of locale-encoded characters from <hex_min> to <hex_max>.
When used with the --utf8 option, uprint translates a specified locale-encoded <string> into a UTF-8 compliant backslashed hexadecimal string for use in C or C++ source code.
When used with the --mimename option, uprint returns the name of the Unicode Mime encoding.
Examples
The following command returns information about the current locale:
>uprint
Mib:111 mimeName:"ISO-8859-15" locale:"fr_FR@euro"
The following command translates the word "éric" into a UTF-8 compliant string:
>uprint --utf8 éric\xc3\xa9\x72\x69\x63