#563 DSCreate.pm: Error messages cannot be used in the if expression since they could be localized.
Closed: wontfix None Opened 11 years ago by nhosoi.

Example:
DSCreate.pm.in
if (($semanage_err =~ /defined in policy, cannot be deleted/) || ($semanage_err =~ /is not defined/)) {

The "defined in policy, cannot be deleted" as well as "is not defined" may not match if the system locale is not English...

For instance,

echo $LANG

ja_JP.utf8

Warning: Port 10389 not removed from selinux policy correctly. Error: /usr/sbin/semanage: ポート tcp/10389 は定義されていません
<== this is the Japanese translation of "port tcp/10389 is not defined".

A doc issue...?


Bug description: Error messages from the command line interface
could be localized based upon the users' configuration. But the
script expects English sentence.

Fix description: Set the C locale '$ENV{LANG} = "C"' before running
the command line if the message from the command is examined in
the expression.

Reviewed by Mark (Thank you!!)

Pushed to master: commit 0219577

Metadata Update from @nhosoi:
- Issue assigned to nhosoi
- Issue set to the milestone: 1.3.1

7 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/563

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

3 years ago

Login to comment on this ticket.

Metadata