Skip to content

Commit

Permalink
utf8:all
Browse files Browse the repository at this point in the history
  • Loading branch information
wbuntine committed Jun 5, 2014
1 parent 7d9af24 commit bfa8816
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions bin/linkBags
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8::all;
use Getopt::Long;
use Pod::Usage;
use POSIX;
Expand Down
3 changes: 1 addition & 2 deletions bin/linkCoco
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8;
use utf8::all;
use POSIX;
use HTML::Entities;
use links::URLs;
Expand All @@ -12,7 +12,6 @@ use Lingua::Stem;
use FileHandle;

# encoding pragmas follow any includes like "use"
use encoding 'utf8';
use open ':utf8';
binmode STDIN, ":utf8";
binmode STDERR, ":utf8";
Expand Down
2 changes: 1 addition & 1 deletion bin/linkMatch
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8::all;
use Getopt::Long;
use Pod::Usage;
use POSIX;
Expand All @@ -21,7 +22,6 @@ my $SORTCODE = "LC_ALL=en_US.UTF-8; export LC_ALL;" ;
select((select(STDERR), $| = 1)[0]);

# encoding pragmas follow any includes like "use"
use encoding 'utf8';
use open ':utf8';
binmode STDIN, ":utf8";
binmode STDERR, ":utf8";
Expand Down
3 changes: 1 addition & 2 deletions bin/linkParse
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8;
use utf8::all;
use POSIX;
use HTML::Entities;
use links::URLs;
Expand All @@ -14,7 +14,6 @@ use IO::Pipe;
use File::Tail;

# encoding pragmas follow any includes like "use"
use encoding 'utf8';
use open ':utf8';
binmode STDIN, ":utf8";
binmode STDERR, ":utf8";
Expand Down
2 changes: 1 addition & 1 deletion bin/linkRedir
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# ignores fragments too

use strict;
use utf8::all;
use POSIX;
use HTML::Entities;
use links::URLs;
Expand All @@ -16,7 +17,6 @@ use Getopt::Long;
use Pod::Usage;

# encoding pragmas follow any includes like "use"
use encoding 'utf8';
use open ':utf8';
binmode STDOUT, ":utf8";
binmode STDIN, ":utf8";
Expand Down
2 changes: 1 addition & 1 deletion bin/linkSent
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8;
use utf8::all;
use POSIX;
# use this to split lines for sentences
use Lingua::EN::Sentence qw( get_sentences );
Expand Down
2 changes: 1 addition & 1 deletion bin/linkTables
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8;
use utf8::all;
use POSIX;
use HTML::Entities;
use links::URLs;
Expand Down
2 changes: 1 addition & 1 deletion bin/linkText
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8::all;
use Getopt::Long;
use Pod::Usage;
use POSIX;
Expand All @@ -21,7 +22,6 @@ my $SORTCODE = "LC_ALL=en_US.UTF-8; export LC_ALL;" ;
select((select(STDERR), $| = 1)[0]);

# encoding pragmas follow any includes like "use"
use encoding 'utf8';
use open ':utf8';
binmode STDIN, ":utf8";
binmode STDERR, ":utf8";
Expand Down
2 changes: 1 addition & 1 deletion bin/linkTokens
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8;
use utf8::all;
use POSIX;
use HTML::Entities;
use links::URLs;
Expand Down
2 changes: 1 addition & 1 deletion bin/wex2link
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/perl -w

use strict;
use utf8::all;
use Getopt::Long;
use Pod::Usage;
use POSIX;
Expand Down Expand Up @@ -40,7 +41,6 @@ select((select(STDERR), $| = 1)[0]);

# encoding pragmas follow any includes like "use"
# the handles case where I/O is all UTF8, like Wikipedia
use encoding 'utf8';
use open ':utf8';
binmode STDIN, ":utf8";
binmode STDERR, ":utf8";
Expand Down

0 comments on commit bfa8816

Please sign in to comment.