Why national (Polish) characters don't show in bash in screen over serial tty?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
We have remote login via tty to device using screen application.
When i press national key combination i get only screen flash and no output.
But when i start my own written simple application in the same bash console i get:
root#0000:~# ./charcode
Ã
Â
Got char c: C5
Got char c: 82
Got char c: 0A
^C
root#0000:~#
And after that when i do:
root#0000:~# echo -e 'xC5x82'
Ã
Â
root#0000:~#
The source code of the simple application is:
#include <stdio.h>
int main()
int c;
while((c=getchar())!=EOF)
printf("Got char c: %02Xn", (unsigned char)c);
return 0;
Why national (Polish) characters don't show in bash?
linux bash locale
add a comment |Â
up vote
1
down vote
favorite
We have remote login via tty to device using screen application.
When i press national key combination i get only screen flash and no output.
But when i start my own written simple application in the same bash console i get:
root#0000:~# ./charcode
Ã
Â
Got char c: C5
Got char c: 82
Got char c: 0A
^C
root#0000:~#
And after that when i do:
root#0000:~# echo -e 'xC5x82'
Ã
Â
root#0000:~#
The source code of the simple application is:
#include <stdio.h>
int main()
int c;
while((c=getchar())!=EOF)
printf("Got char c: %02Xn", (unsigned char)c);
return 0;
Why national (Polish) characters don't show in bash?
linux bash locale
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
We have remote login via tty to device using screen application.
When i press national key combination i get only screen flash and no output.
But when i start my own written simple application in the same bash console i get:
root#0000:~# ./charcode
Ã
Â
Got char c: C5
Got char c: 82
Got char c: 0A
^C
root#0000:~#
And after that when i do:
root#0000:~# echo -e 'xC5x82'
Ã
Â
root#0000:~#
The source code of the simple application is:
#include <stdio.h>
int main()
int c;
while((c=getchar())!=EOF)
printf("Got char c: %02Xn", (unsigned char)c);
return 0;
Why national (Polish) characters don't show in bash?
linux bash locale
We have remote login via tty to device using screen application.
When i press national key combination i get only screen flash and no output.
But when i start my own written simple application in the same bash console i get:
root#0000:~# ./charcode
Ã
Â
Got char c: C5
Got char c: 82
Got char c: 0A
^C
root#0000:~#
And after that when i do:
root#0000:~# echo -e 'xC5x82'
Ã
Â
root#0000:~#
The source code of the simple application is:
#include <stdio.h>
int main()
int c;
while((c=getchar())!=EOF)
printf("Got char c: %02Xn", (unsigned char)c);
return 0;
Why national (Polish) characters don't show in bash?
linux bash locale
linux bash locale
asked Jun 29 '17 at 7:15
sibislaw
846
846
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
There is a bug in Debian and all its derivatives (eg. ubuntu and others)
Look here.
To fix this bug:
rm /etc/console-setup/*.gz && setupcon --save-only
This will do a change in the buggy line under
/etc/console-setup/cached_setup_keyboard.sh
-loadkeys '/tmp/tmpkbd.iDWdSi' > '/dev/null'
+loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
There is a bug in Debian and all its derivatives (eg. ubuntu and others)
Look here.
To fix this bug:
rm /etc/console-setup/*.gz && setupcon --save-only
This will do a change in the buggy line under
/etc/console-setup/cached_setup_keyboard.sh
-loadkeys '/tmp/tmpkbd.iDWdSi' > '/dev/null'
+loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
add a comment |Â
up vote
1
down vote
There is a bug in Debian and all its derivatives (eg. ubuntu and others)
Look here.
To fix this bug:
rm /etc/console-setup/*.gz && setupcon --save-only
This will do a change in the buggy line under
/etc/console-setup/cached_setup_keyboard.sh
-loadkeys '/tmp/tmpkbd.iDWdSi' > '/dev/null'
+loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
add a comment |Â
up vote
1
down vote
up vote
1
down vote
There is a bug in Debian and all its derivatives (eg. ubuntu and others)
Look here.
To fix this bug:
rm /etc/console-setup/*.gz && setupcon --save-only
This will do a change in the buggy line under
/etc/console-setup/cached_setup_keyboard.sh
-loadkeys '/tmp/tmpkbd.iDWdSi' > '/dev/null'
+loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'
There is a bug in Debian and all its derivatives (eg. ubuntu and others)
Look here.
To fix this bug:
rm /etc/console-setup/*.gz && setupcon --save-only
This will do a change in the buggy line under
/etc/console-setup/cached_setup_keyboard.sh
-loadkeys '/tmp/tmpkbd.iDWdSi' > '/dev/null'
+loadkeys '/etc/console-setup/cached_UTF-8_del.kmap.gz' > '/dev/null'
edited Sep 22 at 8:01
Goro
6,20152763
6,20152763
answered Sep 22 at 6:17
Sebastian Byczkowski
111
111
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
add a comment |Â
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
â dirkt
Sep 22 at 7:27
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f374091%2fwhy-national-polish-characters-dont-show-in-bash-in-screen-over-serial-tty%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password