On Tue, 11 Mar 2008 14:45:49 +0100, Nico Golde wrote:

> can you try to reproduce this with:
> http://people.debian.org/~nion/newsbeuter/newsbeuter_0.8-1_i386.deb
> It contains a fix by the upstream author which may fix it.

Sorry, but it fails in the same way in my default locale (see my mail
from yesterday).

It works with:
$ [EMAIL PROTECTED] [EMAIL PROTECTED] newsbeuter
$ LANG=de_AT.utf8 LC_ALL=de_AT.utf8 newsbeuter
$ LANG=de_AT.iso88591 LC_ALL=de_AT.iso88591 newsbeuter
$ LANG=C LC_ALL=C newsbeuter
$ LANG=de_AT.utf8 newsbeuter
$ [EMAIL PROTECTED] newsbeuter
$ LANG=de_AT.iso88591 newsbeuter
$ LANG=en_US.iso885915 newsbeuter

It looks like the mismatch of LANG and LC_CTYPE is no problem and
LC_ALL is not needed; just LANG={C,POSIX} breaks.

Interestingly
$ LANG=C [EMAIL PROTECTED] newsbeuter
works -- and that's the same as my default locale.

$ export LANG=C; export [EMAIL PROTECTED]
$ newsbeuter
fails; 
$ LANG=C [EMAIL PROTECTED] newsbeuter
now fails too.

Hu?!

New xterm, old locale ...

$ LC_MESSAGES=en_US.iso885915 newsbeuter
$ [EMAIL PROTECTED] newsbeuter
both work

$ [EMAIL PROTECTED] newsbeuter
$ LC_CTYPE=en_US.iso885915 newsbeuter
both fail

Maybe that helps more:
$ newsbeuter -d debug.log -l 6

The end of debug.log is:
[2008-03-11 21:00:40] DEBUG: utils::convert_text: before: Chrisu JÀhnl
[2008-03-11 21:00:40] DEBUG: utils::convert_text: after:  Chrisu Jähnl
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = i value = 4
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = i done
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = u value = 
(1/34)
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = u done
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = n value = N
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = n done
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = t value = 
Chrisu Jähnl
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = t done
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = l value = 
http://www.google.com/calendar/[..]
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = l done
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = L value = 
http://www.google.com/calendar/[..]
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = L done
[2008-03-11 21:00:40] DEBUG: utils::convert_text: before: 
[2008-03-11 21:00:40] DEBUG: utils::convert_text: after:  
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = d value = 
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::register_fmt: char = d done
[2008-03-11 21:00:40] DEBUG: utils::str2wstr: current locale: C
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: fmt = `%4i %n %11u 
%t' width = 110
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: fmtlen = 14
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: number = 4
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: swprintf result =    4
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: number = 11
[2008-03-11 21:00:40] DEBUG: fmtstr_formatter::do_format: swprintf result =     
 (1/34)
[2008-03-11 21:00:40] DEBUG: utils::wstr2str: locale = C input = `   4 N      
(1/34) Chrisu Jähnl'
[2008-03-11 21:00:40] ERROR: utils::wstr2str: conversion of `   4 N      (1/34) 
Chrisu Jähnl' failed.

(URLs truncated, this is a private feed for a Google calendar of a friend)


Cheers,
gregor

-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  debian: the universal operating system - http://www.debian.org/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Kurt Ostbahn & Die Kombo: So gern so vü

Attachment: signature.asc
Description: Digital signature

Reply via email to