Bug 178413 - none UTF-8 messages for GNOME applications
none UTF-8 messages for GNOME applications
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: popt (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Robert Scheck
Fedora Extras Quality Assurance
:
Depends On: 249352
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-20 05:42 EST by fujiwara
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: 1.12-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-23 19:28:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch for Makefile.am, configure.in, popthelp.c, poptint.c, poptint.h (6.76 KB, patch)
2006-01-20 05:42 EST, fujiwara
no flags Details | Diff
Patch for Makefile.am configure.in popthelp.c poptint.c and poptint.h (6.68 KB, patch)
2006-10-10 03:21 EDT, fujiwara
no flags Details | Diff
Patch for popt/configure.ac and popt/popthelp.c (2.00 KB, patch)
2007-08-24 02:22 EDT, fujiwara
no flags Details | Diff
Patch for isspace() cast in popt/popthelp.c (842 bytes, patch)
2007-08-24 10:04 EDT, fujiwara
no flags Details | Diff

  None (edit)
Description fujiwara 2006-01-20 05:42:21 EST
Description of problem:
When we invoke 'application --help' on none UTF-8 locales, applications help
messages are not shown correctly.
I'm attaching the patch.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 fujiwara 2006-01-20 05:42:21 EST
Created attachment 123474 [details]
Patch for Makefile.am, configure.in, popthelp.c, poptint.c, poptint.h
Comment 2 Jeff Johnson 2006-01-20 14:28:38 EST
Linking popt to glib simply ain't gonna happen.
Comment 3 fujiwara 2006-01-21 03:31:37 EST
Linking popt causes some build errors in other modules/packages durling configure.in
Comment 4 David Lawrence 2006-04-18 16:26:41 EDT
NEEDINFO_ENG has been deprecated in favor of NEEDINFO or ASSIGNED. Changing
status to ASSIGNED for ENG review.
Comment 5 Jeff Johnson 2006-04-25 01:09:08 EDT
Using glib in popt creates unresolvable dependency loops if dependencies are added
to track the usage of glib, or tricky support problems for popt output changes when glib cannot
be dlopen'ed, so the patch as written cannot be applied.

Meanwhile, if you rewrite using iconv(3) (which is all that glib2 is using), then the patch is probably
acceptable.
Comment 6 fujiwara 2006-10-10 03:21:17 EDT
Created attachment 138119 [details]
Patch for Makefile.am configure.in popthelp.c poptint.c and poptint.h

Patch using iconv
Comment 8 fujiwara 2007-02-20 07:35:02 EST
Could you integrate the patch into HEAD?
Comment 9 Matthew Miller 2007-04-06 12:51:38 EDT
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.

[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]
Comment 10 fujiwara 2007-04-09 03:08:16 EDT
This problem does not depends on the distributers and not fixed in popt HEAD yet.
Could you integrate the fix? This bug is one year ago.
Comment 11 Jeff Johnson 2007-04-09 09:08:27 EDT
Apologies, I did not see the rewritten patch using iconv.
That looks acceptable. I'll try to look this week.
Comment 12 Matthew Miller 2007-04-09 09:12:41 EDT
Moving this to devel.
Comment 13 Jeff Johnson 2007-04-20 21:31:47 EDT
Added to rpm cvs, will be in popt-1.10.9-0.4 when built. Thanks for the patience and the patch.

UPSTREAM
Comment 14 Robert Scheck 2007-08-10 06:06:11 EDT
Well...this issue already should be fixed in the popt package I added for my 
review request. It would be nice, if somebody could try the popt package I 
added to my review request and close this bug report if everything works with 
this package. Thanks.
Comment 15 Robert Scheck 2007-08-23 19:28:42 EDT
Your patch is at least incooperated into popt 1.12-3 which should reach Rawhide 
soon. I'll close this bug report now.
Comment 16 fujiwara 2007-08-24 02:22:38 EDT
Created attachment 172393 [details]
Patch for popt/configure.ac and popt/popthelp.c

Thanks for commiting the patch.

I noticed the CVS repository today.
It seems some of the codes are not commited yet so I'ld like to update the
patch.

Could you review the attachment?
The configure.ac works with 'autoheader' command.
Comment 17 Robert Scheck 2007-08-24 09:34:53 EDT
I forwarded your patch to upstream, got reviewed there and was applied some 
minutes ago into CVS.
Comment 18 fujiwara 2007-08-24 10:04:59 EDT
Created attachment 172416 [details]
Patch for isspace() cast in popt/popthelp.c

Thanks much for the quick integration.

Sorry, I'ld also like to integrate the cast part in the previous patch.

Could you review the attached patch?

On Solaris, the isspace() does not work correctly because the type of 'ch' and
'help' are signed char and they become minus values because multibyte chars are
8bit > 7bit so isspace() receives minus int.

     int isspace(int c);

The suggested fix is we convert the char to unsigned char and can convert to
plus int with the cast.
Then the isspace() works on Solaris.

Thanks.
Comment 19 fujiwara 2007-08-30 02:10:23 EDT
Thanks much for your integrations.

Note You need to log in before you can comment on or make changes to this bug.