Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
72e63d81
Commit
72e63d81
authored
Dec 29, 2013
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add decode():ing logic.
parent
6ecf878d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
config/chroot_local-includes/usr/local/sbin/tails-blocked-network-detector
...al-includes/usr/local/sbin/tails-blocked-network-detector
+6
-3
No files found.
config/chroot_local-includes/usr/local/sbin/tails-blocked-network-detector
View file @
72e63d81
...
...
@@ -26,18 +26,21 @@ use File::Tail;
use
Parse::
Syslog
;
use
IPC::System::
Simple
qw(runx)
;
use
Locale::
gettext
;
use
I18N::
Langinfo
qw{langinfo CODESET}
;
use
Encode
qw{decode find_encoding}
;
use
POSIX
;
setlocale
(
LC_MESSAGES
,
"");
textdomain
("
tails
");
sub
notify_maybe_blocked
{
my
$summary
=
gettext
('
Network connection blocked?
');
my
$body
=
gettext
(
my
$encoding
=
find_encoding
(
langinfo
(
CODESET
()));
my
$summary
=
$encoding
->
decode
(
gettext
('
Network connection blocked?
'));
my
$body
=
$encoding
->
decode
(
gettext
(
'
It looks like you are blocked from the network. This may be
'
.
'
related to the MAC spoofing feature. For more information, see the
'
.
'
<a href=\"file:///usr/share/doc/tails/website/doc/advanced_topics/
'
.
'
mac_changer.en.html#blocked\">MAC spoofing documentation</a>.
');
'
mac_changer.en.html#blocked\">MAC spoofing documentation</a>.
')
)
;
# We can't use Desktop::Notify since this script is supposed to be run
# as root (for access to syslog), started in an env without DESKTOP etc,
# which also causes issues with opening links in the text body.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment