Date shows wrong Finnish string for Sept

Bug #858737 reported by Joel Korhonen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

In the main GUI, Date and Published fields for September show "s11s" (s-one-one-s) not "syys" when using the Finnish locale in English Windows 7 Ultimate using Finnish regional settings in Windows and default Calibre settings. Other months show ok.

Metadata editor shows this month correctly though for Date and Published.

Related branches

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 858737

@charles: The problem is caused in format_date(). format_month() return syys
for september in the finnish locale which format_year then clobbers. Possible
solutions:

1) Write a re that matches all three simulataneously as different groups
2) Do a two stage replacement where the first stage inserts placeholders and
the second replaces the placeholders

Revision history for this message
Kovid Goyal (kovid) wrote :

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Charles Haley (cbhaley)
Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.