[Scummvm-git-logs] scummvm master -> b1d37306f9fcab31198680b6fd098eb0d5a74cec
sev-
sev at scummvm.org
Tue Jul 27 21:29:24 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b1d37306f9 DEVTOOLS: Added stdin encoding mode for dumper-companion.pl
Commit: b1d37306f9fcab31198680b6fd098eb0d5a74cec
https://github.com/scummvm/scummvm/commit/b1d37306f9fcab31198680b6fd098eb0d5a74cec
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-07-27T23:28:49+02:00
Commit Message:
DEVTOOLS: Added stdin encoding mode for dumper-companion.pl
Changed paths:
devtools/dumper-companion.pl
diff --git a/devtools/dumper-companion.pl b/devtools/dumper-companion.pl
index 6ac3031ed9..ed72235bcc 100644
--- a/devtools/dumper-companion.pl
+++ b/devtools/dumper-companion.pl
@@ -40,7 +40,7 @@ sub decode_punycode;
sub encode_punycode;
sub encode_punycodefilename;
-getopts('hmf:c:ed');
+getopts('hmf:c:eds');
if ($::opt_c and $::opt_e) {
die "$0: -c and -e are mutually exclusive";
@@ -51,6 +51,14 @@ if ($::opt_h) {
exit 0;
}
+if ($::opt_s) {
+ local $/;
+ my $input = <>;
+
+ print encode_punycodefilename($input) . "\n";
+ exit 0;
+}
+
if ($::opt_m) {
processMacbinary;
exit 0;
@@ -180,6 +188,10 @@ Mode 2:
Optionally specify encoding (MacRoman, MacJapanese)
If -e is specified, then encode filenames into punycode
+Mode 3:
+ $0 -s
+ Read whole standard input and encode it with punycode
+
Miscellaneous:
-h, --help display this help and exit
EOF
More information about the Scummvm-git-logs
mailing list