3
0
mirror of https://github.com/pragma-/pbot.git synced 2026-02-22 01:07:58 +01:00

pbot-vm: fix network chunking to use binary data instead of ASCII text

This commit is contained in:
Pragmatic Software 2026-02-02 12:53:44 -08:00
parent 6282008a61
commit 07b1d570bc
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@ sub execute {
$self->debug("compile_json: ", Dumper($compile_json), "\n") if $self->{debug} > 5;
my @lines = unpack("(A$chunk_size)*", $compile_json);
my @lines = unpack("(a$chunk_size)*", $compile_json);
push @lines, '';
$self->info("Lines:\n" . Dumper(\@lines) . "\n", 1, 8192) if $self->{debug} > 1;
@ -514,7 +514,7 @@ sub info($self, $text, $timestamp = 1, $maxlen = 255) {
print STDERR "[$$] $time :: $text";
print { $self->{logh} } "[$$] $time :: $text";
} else {
print STDERR $text;
print STDERR encode('UTF-8', $text);
print { $self->{logh} } $text;
}
}

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4931,
BUILD_DATE => "2025-12-20",
BUILD_REVISION => 4932,
BUILD_DATE => "2026-02-02",
};
sub initialize {}