py3status spams in journal #24

Closed
zetok opened this Issue Feb 19, 2014 · 4 comments

2 participants

@zetok

Settings that (I think) are relevant:

LANG=pl_PL.UTF-8

.i3status.conf:

tztime local {
        format = "%a %Y-%m-%d %H:%M:%S"
}

Date is shown correctly, and looks like that:

śro 2014-02-19 10:25:00

From journal:

py3status[31352]: i3status adjust_time failed ('ascii' codec can't encode character u'\u015b' in position 0: ordinal not in range(128))

After removing '%a' part of configuration and restarting i3, there are no longer 'errors' in journal.

Steps to reproduce:

  • Put in .i3status.conf:
tztime local {
        format = "śro"
}
  • Restart i3.
  • Watch spam in journal.

py3status version 1.2 installed from Gentoo ebuild.

If more informations that I could provide are needed, contact me.

Please fix it.

@ultrabug ultrabug self-assigned this Feb 20, 2014
@ultrabug
Owner

Hi zetok,

I'd like to be sure about your problem, it appears when you use format = "śro" in your i3status.conf for the tztime module ? If so I wonder what's your use case here since you don't print out any actual date ?

I'll try on my side anyway, please also report your current active python version ?

@ultrabug
Owner

I think the above commit should fix the problem. I was able to reproduce yours and this fixes it.

Can you please try it from branch issue24 and confirm ? I'll then merge it to master.

@zetok

Perhaps I wasn't really clear about it..
There's no use case for me with format = "śro", 'śro' is just an output of '%a' in Polish language on Wednesday :-) .

System-wide I use python-2.7.5-r2 (if it still matters).

Seems to work properly now.

@zetok zetok closed this Feb 20, 2014
@ultrabug
Owner

Thanks, I made it compatible with python3 as well. I'll merge it soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment