Public bug reported:

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

** Affects: jcal (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "jcal output in ubuntu terminal"
   
https://bugs.launchpad.net/bugs/1622220/+attachment/4738334/+files/Jcal%20Output.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1622220

Title:
  Farsi names appear in reverse order but farsi numbers not

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jcal/+bug/1622220/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to