OpenSolaris

Printable Version Enter a New Search
Bug ID 6683336
Synopsis sczbt_register uses /usr/bin/tr which fails on UTF8 locales
State 10-Fix Delivered (Fix available in build)
Category:Subcategory suncluster:ha-zones
Keywords
Responsible Engineer Thorsten Frueauf
Reported Against 3.2_fcs
Duplicate Of
Introduced In
Commit to Fix 3.2u2_03
Fixed In 3.2u2_03
Release Fixed 3.2u2_fcs(3.2u2_03) , osc(osc_20) (Bug ID:2161467) 3.2_patch(Bug ID:2161504,)
Related Bugs
Submit Date 2-April-2008
Last Update Date 9-April-2008
Description
/usr/bin/tr fails if the locale is set to UTF8, like:

$ env LC_ALL=en_US.UTF-8 echo TRUE | /usr/bin/tr [:upper:] [:lower:]
Bad string

while the usage of /usr/xpg4/bin/tr will work:

$ env LC_ALL=en_US.UTF-8 echo TRUE | /usr/xpg4/bin/tr [:upper:] [:lower:]
true

The sczbt_register file is using /usr/bin/tr and will fail if the root environment is setup with an UTF8 locale.
Work Around
N/A
Comments
N/A