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:
parent
6282008a61
commit
07b1d570bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user