Clint Adams wrote:
>>Locale is set to hr_HR.UTF-8. RPS1 variable contains %D{%a} or abbreviated
>>weekday. For thursday (in croatian: četvrtak) I should get "Čet", but I
>>don't. Here is a screenshot: http://www.inet.hr/~vfurac/zsh_utf8.png.
> 
> 
> Do any of the following do the right thing?
> 
> print -P "%D{%a}"

% print -P "%D{%a}"
Čet

Yes, it's OK.

> zmodload zsh/datetime; strftime "%a" $EPOCHSECONDS 

% zmodload zsh/datetime; strftime "%a" $EPOCHSECONDS
Čet

Yes, this works too.

> PS1="%D{%a}%# "

% PS1="%D{%a}%# "

Not good. I get the same thing as in screenshot.




Reply via email to