Code Monkey home page Code Monkey logo

Comments (8)

avysk avatar avysk commented on June 12, 2024 1

Indeed, it was an abbreviation: "июля" means "of July", and "нояб." is an abbreviation of "of November". I'll run your test when I adapt it (FreeBSD's date has no -d option).

from neomutt.

avysk avatar avysk commented on June 12, 2024

If it matters, it is Windows Terminal and ssh to FreeBSD.

from neomutt.

avysk avatar avysk commented on June 12, 2024

And I see the same problem in xterm over VNC.

from neomutt.

flatcap avatar flatcap commented on June 12, 2024

Hmm... I think is a library problem.
I think the short month strings aren't all the same length.
The giveaway is the . (dot) in November.

I've seen the same before with a French locale.

Can you try this:

export LANG=ru_RU.UTF-8
for i in {01..12}; do date -d 2022-$i-01 "+%b %d"; done

I get:

янв 01
фев 01
мар 01
апр 01
мая 01
июн 01
июл 01
авг 01
сен 01
окт 01
ноя 01
дек 01

However with French, it's a mess:

export LANG=fr_FR.UTF-8
for i in {01..12}; do date -d 2022-$i-01 "+%b %d"; done
janv. 01
févr. 01
mars 01
avril 01
mai 01
juin 01
juil. 01
août 01
sept. 01
oct. 01
nov. 01
déc. 01

from neomutt.

flatcap avatar flatcap commented on June 12, 2024

In NeoMutt, you might be able to change the formatting of the date string.

This works but right-aligns:

%{%4b %d}

This ignores the left-align:

%{%-4b %d}

This looks awful, but seems to work:

%-5{%b} %{%d}

from neomutt.

avysk avatar avysk commented on June 12, 2024
❯ for i in {01..12}; do date -j -f "%m %d" "$i 1" "+%b %d"; done
янв. 01
февр. 01
марта 01
апр. 01
мая 01
июня 01
июля 01
авг. 01
сент. 01
окт. 01
нояб. 01
дек. 01

from neomutt.

avysk avatar avysk commented on June 12, 2024

%-5{%b} %{%d} in index_format worked, thank you very much!

from neomutt.

flatcap avatar flatcap commented on June 12, 2024

Great! You're welcome.

from neomutt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.