Farsi names appear in reverse order but farsi numbers not

Bug #1622220 reported by Pejman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jcal (Ubuntu)
New
Undecided
Unassigned

Bug Description

I encounter this bug, when using jcal in MAC terminal or using ssh to connect to ubuntu from MAC terminal. Running application with -p option will show the names in reverse order (Right to Left) but the calendar numbers appear in Left to Right order. This cause the calendar day counts backward!

Here is a sample output:

$ jcal -p
     شهریور ۱۳۹۵
شن یک دو سه چه پن جم
       ۱ ۲ ۳ ۴ ۵
 ۶ ۷ ۸ ۹ ۱۰ ۱۱ ۱۲
۱۳ ۱۴ ۱۵ ۱۶ ۱۷ ۱۸ ۱۹
۲۰ ۲۱ ۲۲ ۲۳ ۲۴ ۲۵ ۲۶
۲۷ ۲۸ ۲۹ ۳۰ ۳۱

While just running jcal will produce:

$ jcal
   Shahrivar 1395
Sh Ye Do Se Ch Pa Jo
       1 2 3 4 5
 6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

The correct sample output of jcal -p should be :
     شهریور ۱۳۹۵
شن یک دو سه چه پن جم
۵ ۴ ۳ ۲ ۱
۱۲ ۱۱ ۱۰ ۹ ۸ ۷ ۶
۱۹ ۱۸ ۱۷ ۱۶ ۱۵ ۱۴ ۱۳
۲۶ ۲۵ ۲۴ ۲۳ ۲۲ ۲۱ ۲۰
       ۳۱ ۳۰ ۲۹ ۲۸ ۲۷

If the jcal -p combines with other options, it will produce more complicated errors (confusing month and days) It is almost impossible to read it:

$ jcal -3p
     مرداد ۱۳۹۵ شهریور ۱۳۹۵ مهر ۱۳۹۵
شن یک دو سه چه پن جم شن یک دو سه چه پن جم شن یک دو سه چه پن جم
                   ۱ ۱ ۲ ۳ ۴ ۵ ۱ ۲
 ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۶ ۷ ۸ ۹ ۱۰ ۱۱ ۱۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹
 ۹ ۱۰ ۱۱ ۱۲ ۱۳ ۱۴ ۱۵ ۱۳ ۱۴ ۱۵ ۱۶ ۱۷ ۱۸ ۱۹ ۱۰ ۱۱ ۱۲ ۱۳ ۱۴ ۱۵ ۱۶
۱۶ ۱۷ ۱۸ ۱۹ ۲۰ ۲۱ ۲۲ ۲۰ ۲۱ ۲۲ ۲۳ ۲۴ ۲۵ ۲۶ ۱۷ ۱۸ ۱۹ ۲۰ ۲۱ ۲۲ ۲۳
۲۳ ۲۴ ۲۵ ۲۶ ۲۷ ۲۸ ۲۹ ۲۷ ۲۸ ۲۹ ۳۰ ۳۱ ۲۴ ۲۵ ۲۶ ۲۷ ۲۸ ۲۹ ۳۰
۳۰ ۳۱

It appears that the Ubuntu Terminal has a bug that does not show the right to left languages correctly, by running the jcal on ubuntu terminal directly will produce the same output but it does not appear right to left, which cause it not appear in reverse order on ubuntu terminal The output is (by copy paste):

$ jcal -p
     شهریور ۱۳۹۵
شن یک دو سه چه پن جم
       ۱ ۲ ۳ ۴ ۵
 ۶ ۷ ۸ ۹ ۱۰ ۱۱ ۱۲
۱۳ ۱۴ ۱۵ ۱۶ ۱۷ ۱۸ ۱۹
۲۰ ۲۱ ۲۲ ۲۳ ۲۴ ۲۵ ۲۶
۲۷ ۲۸ ۲۹ ۳۰ ۳۱

but it appears as attached image in ubuntu terminal.

Further information:
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

$ apt-cache policy jcal
jcal:
  Installed: 0.4.1-2
  Candidate: 0.4.1-2
  Version table:
 *** 0.4.1-2 500
        500 http://ca.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Pejman (pejmanhabashi) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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