SCAN_MOJIBAKE(1)

πŸ“¦
version 1.3 Β· 5 versions
, in epel 9

okay so bestie, welcome to scan_mojibake(1) β€” a User Contributed Perl Documentation page, and it is highkey iconic for catching bad character encoding before it ruins your whole vibe πŸ’…βœ¨

🌸 NAME 🌸

scan_mojibake - scan Perl source and report bad character encoding. No cap, that's the whole mission, and it ate πŸ•΅οΈβ€β™€οΈπŸ’–

✨ VERSION ✨

It's literally version 1.3, periodt πŸ’«

πŸŽ€ SYNOPSIS πŸŽ€

Usage is giving:

scan_mojibake [FILES|DIRS]

πŸ’– DESCRIPTION πŸ’–

This is a standalone CLI wrapper for the Test::Mojibake module, fr fr 🫢 Think of it as a vibe check for your Perl source files πŸ’…

It does exactly the same as this command:

perl -MTest::Mojibake -e 'all_files_encoding_ok(@ARGV)' bin/ lib/ t/*.t

ngl, if you already know that invocation, you already know the vibe β€” iykyk 🌸

πŸ¦‹ EXAMPLE πŸ¦‹

Not me showing you the whole glow-up in action:

$ 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

look at all those oks β€” the way that it just ate and left no crumbs 😭πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

  • Test::Mojibake β€” the module behind this whole main character moment, go give it a read bestie πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Stanislaw Pusep <stas@sysd.org> β€” icon behavior, honestly 🫢

This software is copyright (c) 2017 by Stanislaw Pusep.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, but legally πŸ“œβœ¨


Signing off with perl v5.32.1, dated 2019-10-29 β€” bye bestie, go scan those mojibake vibes πŸ’…πŸ’–

πŸ“¦ where this page comes from