Skip Menu |

This queue is for tickets about the Devel-MAT CPAN distribution.

Report information
The Basics
Id: 126044
Status: open
Priority: 0/
Queue: Devel-MAT

People
Owner: Nobody in particular
Requestors: twata_1 [...] yahoo.co.jp
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.39
Fixed in: (no value)

Attachments
(after-workaround)-mojibake-windows7ja-cp932.png
(Devel-MAT-0.40)-mojibake-windows7ja-cp932.png
(With-String-Tagged-Terminal-0.04)-mojibake-windows7ja-cp932.png
mojibake-windows7ja-cp65001.png
mojibake-windows7ja-cp932.png



Subject: pmat causes mojibake on Windows 7(Japanese Edition)
Hi, When I used pmat on the Command Prompt, It displayed like an attached file(mojibake-windows7ja-cp932.png). I changed "Active code page" from 932(default) to 65001(UTF-8) and retried but same as always(Please see an attached file(mojibake-windows7ja-cp65001.png)). [Eenvironment] Windows 7 SP1 32bit, Japanese Strawberry Perl 5.26.1 32bit Thank you, -- twata
Subject: mojibake-windows7ja-cp65001.png
mojibake-windows7ja-cp65001.png
Subject: mojibake-windows7ja-cp932.png
mojibake-windows7ja-cp932.png
On Sun Aug 12 07:05:56 2018, twata_1@yahoo.co.jp wrote: Show quoted text
> When I used pmat on the Command Prompt, > It displayed like an attached file(mojibake-windows7ja-cp932.png).
Yeah, that's the Windows shell not understanding the terminal control codes normally used for setting colours and so on. I've mentioned it to CORION, who runs Windows, who said he'd take a look into it and see if there's something nice that can be done. It might involve some hackery on String::Tagged::Terminal. For a temporary workaround, you can disable the CAN_COLOUR line in bin/pmat: 12: use constant CAN_COLOUR => -t STDERR; Just have it do use constant CAN_COLOUR => 0 instead. -- Paul Evans
Thank you! I appreciate it! Certainly, the mojibake disappeared like an attached file((after-workaround)-mojibake-windows7ja-cp932.png). Thank you so much! On 2018-8月-16 木 09:48:42, PEVANS wrote: Show quoted text
> On Sun Aug 12 07:05:56 2018, twata_1@yahoo.co.jp wrote:
> > When I used pmat on the Command Prompt, > > It displayed like an attached file(mojibake-windows7ja-cp932.png).
> > Yeah, that's the Windows shell not understanding the terminal control > codes normally used for setting colours and so on. > > I've mentioned it to CORION, who runs Windows, who said he'd take a > look into it and see if there's something nice that can be done. It > might involve some hackery on String::Tagged::Terminal. > > For a temporary workaround, you can disable the CAN_COLOUR line in > bin/pmat: > > 12: use constant CAN_COLOUR => -t STDERR; > > Just have it do > > use constant CAN_COLOUR => 0 > > instead.
Subject: (after-workaround)-mojibake-windows7ja-cp932.png
(after-workaround)-mojibake-windows7ja-cp932.png
On Thu Aug 16 09:48:42 2018, PEVANS wrote: Show quoted text
> Yeah, that's the Windows shell not understanding the terminal control > codes normally used for setting colours and so on. > > I've mentioned it to CORION, who runs Windows, who said he'd take a > look into it and see if there's something nice that can be done. It > might involve some hackery on String::Tagged::Terminal.
I've just put on CPAN a development release for the next version: https://metacpan.org/release/PEVANS/String-Tagged-Terminal-0.03_001 This has some specific MSWin32 support, which should probably help you. It'll support basic colours at least Note you'll also need the newly-uploaded Devel::MAT 0.40 to make use of this: https://metacpan.org/release/PEVANS/Devel-MAT-0.40 -- Paul Evans
Hi, Thank you for some specific MSWin32 support. When I tried Devel::MAT 0.40( with String::Tagged::Terminal 0.03_001), I got the following message: Can't call method "fileno" on an undefined value at C:\home\bath1\perl5\lib\perl5/String/Tagged/Terminal/Win32Console.pm line 43. Please see an attached file((Devel-MAT-0.40)-mojibake-windows7ja-cp932.png). Thank you, -- twata On 2018-9月-07 金 10:22:59, PEVANS wrote: Show quoted text
> On Thu Aug 16 09:48:42 2018, PEVANS wrote:
> > Yeah, that's the Windows shell not understanding the terminal control > > codes normally used for setting colours and so on. > > > > I've mentioned it to CORION, who runs Windows, who said he'd take a > > look into it and see if there's something nice that can be done. It > > might involve some hackery on String::Tagged::Terminal.
> > I've just put on CPAN a development release for the next version: > > https://metacpan.org/release/PEVANS/String-Tagged-Terminal-0.03_001 > > This has some specific MSWin32 support, which should probably help > you. It'll support basic colours at least > > Note you'll also need the newly-uploaded Devel::MAT 0.40 to make use > of this: > > https://metacpan.org/release/PEVANS/Devel-MAT-0.40
Subject: (Devel-MAT-0.40)-mojibake-windows7ja-cp932.png
(Devel-MAT-0.40)-mojibake-windows7ja-cp932.png
On Sat Sep 08 05:21:51 2018, twata_1@yahoo.co.jp wrote: Show quoted text
> Hi, > > Thank you for some specific MSWin32 support. > > When I tried Devel::MAT 0.40( with String::Tagged::Terminal 0.03_001), > I got the following message: > > Can't call method "fileno" on an undefined value at > C:\home\bath1\perl5\lib\perl5/String/Tagged/Terminal/Win32Console.pm > line 43.
Yeah that turns out to be a bug on String::Tagged::Terminal. I'm working on a fix now... -- Paul Evans
On Thu Nov 29 07:46:52 2018, PEVANS wrote: Show quoted text
> Yeah that turns out to be a bug on String::Tagged::Terminal. I'm > working on a fix now...
Try this with https://metacpan.org/release/PEVANS/String-Tagged-Terminal-0.04 and with any luck this should all be working nicely now. -- Paul Evans
Thank you. I tried Devel::MAT 0.40 with String::Tagged::Terminal 0.04. Now easier to see for me! Thank you so much! -- twata On 2018-11月-29 木 09:23:23, PEVANS wrote: Show quoted text
> On Thu Nov 29 07:46:52 2018, PEVANS wrote:
> > Yeah that turns out to be a bug on String::Tagged::Terminal. I'm > > working on a fix now...
> > Try this with > > https://metacpan.org/release/PEVANS/String-Tagged-Terminal-0.04 > > and with any luck this should all be working nicely now. >
Subject: (With-String-Tagged-Terminal-0.04)-mojibake-windows7ja-cp932.png
(With-String-Tagged-Terminal-0.04)-mojibake-windows7ja-cp932.png