Bug 441833
| Summary: | Additional charset conversion is performed. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marek Greško <gresko> | ||||
| Component: | smbldap-tools | Assignee: | Paul Howarth <paul> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 8 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| URL: | https://gna.org/bugs/index.php?11717 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 0.9.5-2.fc8 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-07-30 22:25:11 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Marek Greško
2008-04-10 14:07:31 UTC
Looking at the code, it seems that smbldap_tools.pm assumes that input is iso-8859-1 and then just converts it to utf-8. Given that Fedora is "UTF-8 everywhere", it makes sense to me to remove this bogus conversion. An additional benefit of this is that we can lose a bunch of UTF-8 conversion perl module dependencies whilst we're at it. Just for curiosity. My name here in bugzilla (as a reporter) in this thread is converted the same way... just do not convert. I do not know ehther it is a bug in bugzilla, or bad local setup of bugzilla. Created attachment 306394 [details]
Proposed patch to assume UTF8 locale
I think in the long term it would be better for the tools to be able to cope
with varying locales but default to UTF8. So with that in mind I've kept the
conversion functions but effectively made them no-ops by having them convert
from UTF8 to UTF8. I've also tweaked the read_user and read_user_human_readable
functions to handle UTF8 text better, i.e. not just outputting **UNPRINTABLE**
when it comes across non-ASCII characters that are actually printable UTF8
characters.
Can you give this a try?
I've also raised an upstream ticket on this issue: https://gna.org/bugs/index.php?11717 smbldap-tools-0.9.5-2 packages including my alternative patch (and also proposed fixes for Bug #447758 and Bug #430105) can be found here: http://mirror.city-fan.org/ftp/contrib/sysutils/ I'd appreciate some feedback before I issue these as official Fedora updates. smbldap-tools-0.9.5-2.fc8 has been submitted as an update for Fedora 8 smbldap-tools-0.9.5-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update smbldap-tools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-6199 This update is now in the main Fedora 8 updates repository. |