Bug 187649
| Summary: | oggenc and vorbiscomment screw up UTF-8 characters | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sjoerd Mullender <sjoerd> |
| Component: | vorbis-tools | Assignee: | Monty <cmontgom> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5 | CC: | kem |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-10-29 13:11:15 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: | |||
|
Description
Sjoerd Mullender
2006-04-02 10:02:44 UTC
With files that I encoded under Fedora Core 4, also with UTF-8 in titles and artist names, I see under FC5 that vorbiscomment lists those characters as a question mark. If I look inside the file (with less), I see that the characters are there. It seems vorbiscomment translates the UTF-8 characters to latin-1 or something like that and then can't display them. I found out a workaround: setting the environment variable CHARSET=UTF-8 will
cause the tools to Do The Right Thing.
It looks like charset is not set properly in convert_set_charset() in
share/utf8.c. When running under the debugger, I see that the call to
nl_langinfo (and the if statement that governs the call) is skipped, so
HAVE_LANGINFO_CODESET was not set during compilation. See the gdb steps here:
(gdb) b convert_set_charset
Breakpoint 1 at 0x804ad57: file utf8.c, line 232.
(gdb) run
Breakpoint 1, convert_set_charset (charset=0x0) at utf8.c:232
232 {
(gdb) p charset
$1 = 0x0
(gdb) n
234 if (!charset)
(gdb)
235 charset = getenv("CHARSET");
(gdb)
242 free(current_charset);
(gdb) p charset
$2 = 0x0
(gdb)
Between lines 235 and 242 above there are the lines
#ifdef HAVE_LANGINFO_CODESET
if (!charset)
charset = nl_langinfo(CODESET);
#endif
which are not executed.
|