From uri at speedy.net Thu Sep 30 07:10:49 2021 From: uri at speedy.net (=?UTF-8?B?15DXldeo15k=?=) Date: Thu, 30 Sep 2021 07:10:49 +0300 Subject: Hebrew with putty Message-ID: Hi, I'm using bash on Ubuntu. I run a command to check how many times each lines appear. My command is something like: $ cat /var/log/django/speedy.log*|fgrep -i send_mail|fgrep 'subject="'|fgrep -v uri+selenium-test-user|awk -F\, '{print $(NF-1)","$NF}'|sort|uniq -c|sort -nr|fgrep -v email/contact_by_form/admin_feedback And the results are: ... 96 template_name_prefix=email/messages/new_message, subject="You have a new message on Speedy Net" 39 template_name_prefix=email/messages/new_message, subject="?? ?? ????? ???? ?????? ??'" 22 template_name_prefix=email/accounts/confirm_first_email, subject="??? ?? ????? ????? ????????? ??? ?????? ??'" 15 template_name_prefix=email/accounts/confirm_second_email, subject="Confirm your email address on Speedy Net" 10 template_name_prefix=email/likes/like, subject="????? ??? ?? ???? ?????? ??'" 7 template_name_prefix=email/accounts/confirm_first_email, subject="???? ?? ????? ????? ????????? ??? ?????? ??'" 6 template_name_prefix=email/accounts/password_reset, subject="Password reset on Speedy Net" ... (I only showed a few lines in the middle). I do it with putty SSH, but when I view it with putty, I see "01" where "10" should be, and "93" where "39" should be (see screenshot attached). I think this is because the rest of the line is in Hebrew. Why does it show "01" and "93" and how can I fix it, if I can? Thanks, ???? uri at speedy.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: putty 2021-09-30 a.png Type: image/png Size: 19012 bytes Desc: not available URL: From uri at speedy.net Thu Sep 30 10:43:37 2021 From: uri at speedy.net (=?UTF-8?B?15DXldeo15k=?=) Date: Thu, 30 Sep 2021 10:43:37 +0300 Subject: Hebrew with putty In-Reply-To: References: Message-ID: Hi, I realized it is probably a bug in putty, so I wrote to putty at projects.tartarus.org and got a reply. https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html However the putty developers might need help to fix it as they are not RTL-language speaking themselves, so if you know how to do it you can write to them or send them a patch of the source code. I tried to look at the putty source code myself but it looks complicated and I don't know how to fix this bug for myself. There is an option to disable bidirectional text display in putty, but then the Hebrew text is reversed too. ???? uri at speedy.net ?On Thu, Sep 30, 2021 at 7:10 AM ??????? wrote:? > Hi, > > I'm using bash on Ubuntu. I run a command to check how many times each > lines appear. My command is something like: > > $ cat /var/log/django/speedy.log*|fgrep -i send_mail|fgrep > 'subject="'|fgrep -v uri+selenium-test-user|awk -F\, '{print > $(NF-1)","$NF}'|sort|uniq -c|sort -nr|fgrep -v > email/contact_by_form/admin_feedback > > And the results are: > > ... > 96 template_name_prefix=email/messages/new_message, subject="You > have a new message on Speedy Net" > 39 template_name_prefix=email/messages/new_message, subject="?? ?? > ????? ???? ?????? ??'" > 22 template_name_prefix=email/accounts/confirm_first_email, > subject="??? ?? ????? ????? ????????? ??? ?????? ??'" > 15 template_name_prefix=email/accounts/confirm_second_email, > subject="Confirm your email address on Speedy Net" > 10 template_name_prefix=email/likes/like, subject="????? ??? ?? ???? > ?????? ??'" > 7 template_name_prefix=email/accounts/confirm_first_email, > subject="???? ?? ????? ????? ????????? ??? ?????? ??'" > 6 template_name_prefix=email/accounts/password_reset, > subject="Password reset on Speedy Net" > ... > > (I only showed a few lines in the middle). > > I do it with putty SSH, but when I view it with putty, I see "01" where > "10" should be, and "93" where "39" should be (see screenshot attached). I > think this is because the rest of the line is in Hebrew. Why does it show > "01" and "93" and how can I fix it, if I can? > > Thanks, > > > ???? > uri at speedy.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michaelshiloh1010 at gmail.com Thu Sep 30 12:07:06 2021 From: michaelshiloh1010 at gmail.com (Michael Shiloh) Date: Thu, 30 Sep 2021 13:07:06 +0400 Subject: Hebrew with putty In-Reply-To: References: Message-ID: This is very interesting. A while ago I was looking at something in Hebrew (I can't remember if it was a website or email) and I realized that the phone numbers were reversed. I'll bet they had the same bug you are talking about. Now if only I could remember what that was .... ?On Thu, Sep 30, 2021 at 11:45 AM ??????? wrote:? > Hi, > > I realized it is probably a bug in putty, so I wrote to > putty at projects.tartarus.org and got a reply. > > https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html > > However the putty developers might need help to fix it as they are not > RTL-language speaking themselves, so if you know how to do it you can write > to them or send them a patch of the source code. I tried to look at the > putty source code myself but it looks complicated and I don't know how to > fix this bug for myself. There is an option to disable bidirectional text > display in putty, but then the Hebrew text is reversed too. > > ???? > uri at speedy.net > > > ?On Thu, Sep 30, 2021 at 7:10 AM ??????? wrote:? > >> Hi, >> >> I'm using bash on Ubuntu. I run a command to check how many times each >> lines appear. My command is something like: >> >> $ cat /var/log/django/speedy.log*|fgrep -i send_mail|fgrep >> 'subject="'|fgrep -v uri+selenium-test-user|awk -F\, '{print >> $(NF-1)","$NF}'|sort|uniq -c|sort -nr|fgrep -v >> email/contact_by_form/admin_feedback >> >> And the results are: >> >> ... >> 96 template_name_prefix=email/messages/new_message, subject="You >> have a new message on Speedy Net" >> 39 template_name_prefix=email/messages/new_message, subject="?? ?? >> ????? ???? ?????? ??'" >> 22 template_name_prefix=email/accounts/confirm_first_email, >> subject="??? ?? ????? ????? ????????? ??? ?????? ??'" >> 15 template_name_prefix=email/accounts/confirm_second_email, >> subject="Confirm your email address on Speedy Net" >> 10 template_name_prefix=email/likes/like, subject="????? ??? ?? >> ???? ?????? ??'" >> 7 template_name_prefix=email/accounts/confirm_first_email, >> subject="???? ?? ????? ????? ????????? ??? ?????? ??'" >> 6 template_name_prefix=email/accounts/password_reset, >> subject="Password reset on Speedy Net" >> ... >> >> (I only showed a few lines in the middle). >> >> I do it with putty SSH, but when I view it with putty, I see "01" where >> "10" should be, and "93" where "39" should be (see screenshot attached). I >> think this is because the rest of the line is in Hebrew. Why does it show >> "01" and "93" and how can I fix it, if I can? >> >> Thanks, >> >> >> ???? >> uri at speedy.net >> > _______________________________________________ > Linux-il mailing list > Linux-il at cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > -------------- next part -------------- An HTML attachment was scrubbed... URL: From uri at speedy.net Thu Sep 30 12:08:49 2021 From: uri at speedy.net (=?UTF-8?B?15DXldeo15k=?=) Date: Thu, 30 Sep 2021 12:08:49 +0300 Subject: Hebrew with putty In-Reply-To: References: Message-ID: Hi Michael, Did you use putty then? ???? uri at speedy.net On Thu, Sep 30, 2021 at 12:07 PM Michael Shiloh wrote: > This is very interesting. A while ago I was looking at something in Hebrew > (I can't remember if it was a website or email) and I realized that the > phone numbers were reversed. I'll bet they had the same bug you are talking > about. > > Now if only I could remember what that was .... > > ?On Thu, Sep 30, 2021 at 11:45 AM ??????? wrote:? > >> Hi, >> >> I realized it is probably a bug in putty, so I wrote to >> putty at projects.tartarus.org and got a reply. >> >> https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html >> >> However the putty developers might need help to fix it as they are not >> RTL-language speaking themselves, so if you know how to do it you can write >> to them or send them a patch of the source code. I tried to look at the >> putty source code myself but it looks complicated and I don't know how to >> fix this bug for myself. There is an option to disable bidirectional text >> display in putty, but then the Hebrew text is reversed too. >> >> ???? >> uri at speedy.net >> >> >> ?On Thu, Sep 30, 2021 at 7:10 AM ??????? wrote:? >> >>> Hi, >>> >>> I'm using bash on Ubuntu. I run a command to check how many times each >>> lines appear. My command is something like: >>> >>> $ cat /var/log/django/speedy.log*|fgrep -i send_mail|fgrep >>> 'subject="'|fgrep -v uri+selenium-test-user|awk -F\, '{print >>> $(NF-1)","$NF}'|sort|uniq -c|sort -nr|fgrep -v >>> email/contact_by_form/admin_feedback >>> >>> And the results are: >>> >>> ... >>> 96 template_name_prefix=email/messages/new_message, subject="You >>> have a new message on Speedy Net" >>> 39 template_name_prefix=email/messages/new_message, subject="?? ?? >>> ????? ???? ?????? ??'" >>> 22 template_name_prefix=email/accounts/confirm_first_email, >>> subject="??? ?? ????? ????? ????????? ??? ?????? ??'" >>> 15 template_name_prefix=email/accounts/confirm_second_email, >>> subject="Confirm your email address on Speedy Net" >>> 10 template_name_prefix=email/likes/like, subject="????? ??? ?? >>> ???? ?????? ??'" >>> 7 template_name_prefix=email/accounts/confirm_first_email, >>> subject="???? ?? ????? ????? ????????? ??? ?????? ??'" >>> 6 template_name_prefix=email/accounts/password_reset, >>> subject="Password reset on Speedy Net" >>> ... >>> >>> (I only showed a few lines in the middle). >>> >>> I do it with putty SSH, but when I view it with putty, I see "01" where >>> "10" should be, and "93" where "39" should be (see screenshot attached). I >>> think this is because the rest of the line is in Hebrew. Why does it show >>> "01" and "93" and how can I fix it, if I can? >>> >>> Thanks, >>> >>> >>> ???? >>> uri at speedy.net >>> >> _______________________________________________ >> Linux-il mailing list >> Linux-il at cs.huji.ac.il >> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michaelshiloh1010 at gmail.com Thu Sep 30 12:26:46 2021 From: michaelshiloh1010 at gmail.com (Michael Shiloh) Date: Thu, 30 Sep 2021 13:26:46 +0400 Subject: Hebrew with putty In-Reply-To: References: Message-ID: I was not using Putty ?On Thu, Sep 30, 2021 at 1:09 PM ??????? wrote:? > Hi Michael, > > Did you use putty then? > > ???? > uri at speedy.net > > > On Thu, Sep 30, 2021 at 12:07 PM Michael Shiloh < > michaelshiloh1010 at gmail.com> wrote: > >> This is very interesting. A while ago I was looking at something in >> Hebrew (I can't remember if it was a website or email) and I realized that >> the phone numbers were reversed. I'll bet they had the same bug you are >> talking about. >> >> Now if only I could remember what that was .... >> >> ?On Thu, Sep 30, 2021 at 11:45 AM ??????? wrote:? >> >>> Hi, >>> >>> I realized it is probably a bug in putty, so I wrote to >>> putty at projects.tartarus.org and got a reply. >>> >>> https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html >>> >>> However the putty developers might need help to fix it as they are not >>> RTL-language speaking themselves, so if you know how to do it you can write >>> to them or send them a patch of the source code. I tried to look at the >>> putty source code myself but it looks complicated and I don't know how to >>> fix this bug for myself. There is an option to disable bidirectional text >>> display in putty, but then the Hebrew text is reversed too. >>> >>> ???? >>> uri at speedy.net >>> >>> >>> ?On Thu, Sep 30, 2021 at 7:10 AM ??????? wrote:? >>> >>>> Hi, >>>> >>>> I'm using bash on Ubuntu. I run a command to check how many times each >>>> lines appear. My command is something like: >>>> >>>> $ cat /var/log/django/speedy.log*|fgrep -i send_mail|fgrep >>>> 'subject="'|fgrep -v uri+selenium-test-user|awk -F\, '{print >>>> $(NF-1)","$NF}'|sort|uniq -c|sort -nr|fgrep -v >>>> email/contact_by_form/admin_feedback >>>> >>>> And the results are: >>>> >>>> ... >>>> 96 template_name_prefix=email/messages/new_message, subject="You >>>> have a new message on Speedy Net" >>>> 39 template_name_prefix=email/messages/new_message, subject="?? >>>> ?? ????? ???? ?????? ??'" >>>> 22 template_name_prefix=email/accounts/confirm_first_email, >>>> subject="??? ?? ????? ????? ????????? ??? ?????? ??'" >>>> 15 template_name_prefix=email/accounts/confirm_second_email, >>>> subject="Confirm your email address on Speedy Net" >>>> 10 template_name_prefix=email/likes/like, subject="????? ??? ?? >>>> ???? ?????? ??'" >>>> 7 template_name_prefix=email/accounts/confirm_first_email, >>>> subject="???? ?? ????? ????? ????????? ??? ?????? ??'" >>>> 6 template_name_prefix=email/accounts/password_reset, >>>> subject="Password reset on Speedy Net" >>>> ... >>>> >>>> (I only showed a few lines in the middle). >>>> >>>> I do it with putty SSH, but when I view it with putty, I see "01" where >>>> "10" should be, and "93" where "39" should be (see screenshot attached). I >>>> think this is because the rest of the line is in Hebrew. Why does it show >>>> "01" and "93" and how can I fix it, if I can? >>>> >>>> Thanks, >>>> >>>> >>>> ???? >>>> uri at speedy.net >>>> >>> _______________________________________________ >>> Linux-il mailing list >>> Linux-il at cs.huji.ac.il >>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From tzafrir at cohens.org.il Thu Sep 30 22:07:36 2021 From: tzafrir at cohens.org.il (Tzafrir Cohen) Date: Thu, 30 Sep 2021 22:07:36 +0300 Subject: Hebrew with putty In-Reply-To: References: Message-ID: On Thu, Sep 30, 2021 at 10:43:37AM +0300, ???? wrote: > Hi, > > I realized it is probably a bug in putty, so I wrote to > putty at projects.tartarus.org and got a reply. > > https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html > > However the putty developers might need help to fix it as they are not > RTL-language speaking themselves, so if you know how to do it you can write > to them or send them a patch of the source code. I tried to look at the > putty source code myself but it looks complicated and I don't know how to > fix this bug for myself. There is an option to disable bidirectional text > display in putty, but then the Hebrew text is reversed too. The basic thing you can do is simplify the test case. Put that text in a file and make sure that merely cat of that file gives the problematic output. Then try to get a minimal example that still shows the problem. -- Tzafrir