Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "wide character in print" #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions samples/conference_lister
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use AnyEvent::XMPP::Ext::DataForm;
use Storable;
use XML::DOM::XPath;

binmode STDOUT, ':encoding(UTF-8)';

our $J = AnyEvent->condvar;
our $datafile = "conferences.stor";
our $data = {};
Expand Down
2 changes: 2 additions & 0 deletions samples/disco_test
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Ext::Disco;
use AnyEvent::XMPP::Ext::DataForm;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new (debug => 1);
my $d = AnyEvent::XMPP::Ext::Disco->new;
Expand Down
2 changes: 2 additions & 0 deletions samples/disco_version
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Ext::Version;
use POSIX qw/strftime/;

binmode STDOUT, ':encoding(UTF-8)';

my ($jid,$pass) = qw/[email protected] test/;
($jid, $pass) = @ARGV if @ARGV;

Expand Down
2 changes: 2 additions & 0 deletions samples/limit_searcher
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Util qw/simxml/;
use AnyEvent::XMPP::Ext::Disco;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new;

Expand Down
2 changes: 2 additions & 0 deletions samples/room_lister
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use Storable;
use XML::DOM::XPath;
use EVQ;

binmode STDOUT, ':encoding(UTF-8)';

our $datafile = "room_data.stor";
our $data = {};

Expand Down
2 changes: 2 additions & 0 deletions samples/send_bad_namespace
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use utf8;
use AnyEvent;
use AnyEvent::XMPP::Client;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new (debug => 1);
$cl->add_account ('[email protected]', 'test');
Expand Down
2 changes: 2 additions & 0 deletions samples/sendmsg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use utf8;
use AnyEvent;
use AnyEvent::XMPP::IM::Connection;

binmode STDOUT, ':encoding(UTF-8)';

unless (@ARGV >= 3) { die "sendmsg <account jid> <password> <destination jid>\n" }

my $msg = do { local $/; <STDIN> };
Expand Down
2 changes: 2 additions & 0 deletions samples/simple_bot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Ext::Disco;
use AnyEvent::XMPP::Ext::MUC;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new (debug => 1);
$cl->add_account ('[email protected]', 'test');
Expand Down
2 changes: 2 additions & 0 deletions samples/simple_example_1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use AnyEvent::Impl::Tk;
use AnyEvent;
use AnyEvent::XMPP::Client;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new (debug => 1);
$cl->add_account ('[email protected]', 'test');
Expand Down
4 changes: 3 additions & 1 deletion samples/simple_oob_retriever
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use utf8;
use AnyEvent;
use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Ext::OOB;
use AnyEvent::XMPP::Ext::Disco;
use AnyEvent::XMPP::Ext::Disco;

binmode STDOUT, ':encoding(UTF-8)';

my $j = AnyEvent->condvar;
my $cl = AnyEvent::XMPP::Client->new (debug => 1);
Expand Down
2 changes: 2 additions & 0 deletions samples/simple_register_example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use AnyEvent::XMPP::Client;
use AnyEvent::XMPP::Ext::Registration;
use AnyEvent::XMPP::Util qw/split_jid/;

binmode STDOUT, ':encoding(UTF-8)';

sub result {
my ($reg, $ok, $error, $form, $comment) = @_;
$comment ||= 'REGISTERED!';
Expand Down