SCAN_MOJIBAKE(1p)
β¨ SCAN_MOJIBAKE β¨
okay bestie, gather round π this is the manual page for scan_mojibake, a lil Perl utility whose whole entire job is scanning Perl source and reporting bad character encoding. yes. that's it. that's the gig. and honestly? iconic.
πΈ VERSION πΈ
we're on version 1.3 rn. periodt.
π¦ SYNOPSIS π¦
scan_mojibake [FILES|DIRS]
likeβ¦ you just hand it files or dirs and it goes to work. no notes. π
π DESCRIPTION π
so here's the tea: this is a standalone CLI wrapper for the Test::Mojibake module. it's basically the module in a cute little outfit so you can run it from your shell instead of writing Perl one-liners at 2am.
it does exactly the same as this:
perl -MTest::Mojibake -e 'all_files_encoding_ok(@ARGV)' bin/ lib/ t/*.t
literally the same thing. same energy. same results. no cap. π«Ά
π EXAMPLE π
here's what it looks like when it eats:
$ scan_mojibake bin/ lib/ t/*.t
1..14
ok 1 - Mojibake test for bin/scan_mojibake
ok 2 - Mojibake test for lib/Test/Mojibake.pm
ok 3 - Mojibake test for t/00-load.t
ok 4 - Mojibake test for t/01-bad-check.t
ok 5 - Mojibake test for t/01-self-check.t
ok 6 - Mojibake test for t/01-test-check.t
ok 7 - Mojibake test for t/02-bad-source.t
ok 8 - Mojibake test for t/02-good-source.t
ok 9 - Mojibake test for t/03-bad-pod.t
ok 10 - Mojibake test for t/03-good-pod.t
ok 11 - Mojibake test for t/04-bom.t
ok 12 - Mojibake test for t/05-encode.t
ok 13 - Mojibake test for t/06-pp-vs-xs.t
ok 14 - Mojibake test for t/07-broken-utf8.t
fourteen checks, fourteen oks. a full sweep. the encoding vibe check was passed. we love to see it. πβ¨
π SEE ALSO π
Test::Mojibakeβ the actual module this thing is wrapping, go read it iykyk π§
π AUTHOR π
Stanislaw Pusep <stas@sysd.org> β the main character who wrote this. we stan. π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2017 by Stanislaw Pusep.
it's free software, bestie β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go forth and remix, respectfully. π«Ά
okay that's the whole page, you're fully caught up, no further questions your honor π
signing off from perl v5.36.0, dated 2022-11-20, filed under SCAN_MOJIBAKE(1p) β stay encoded correctly, bestie, love u bye πππΈ
π¦ where this page comes from
- debian bookworm: libtest-mojibake-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtest-mojibake-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtest-mojibake-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-mojibake-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-mojibake-perl 1.3-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms