Why national (Polish) characters don't show in bash in screen over serial tty?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question

























    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?










    share|improve this question























      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 29 '17 at 7:15









      sibislaw

      846




      846




















          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'





          share|improve this answer






















          • Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
            – dirkt
            Sep 22 at 7:27










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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'





          share|improve this answer






















          • Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
            – dirkt
            Sep 22 at 7:27














          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'





          share|improve this answer






















          • Seems to be fixed here ... (Devuan, so I guess it'll be fixed in Debian, too).
            – dirkt
            Sep 22 at 7:27












          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'





          share|improve this answer














          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'






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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
















          • 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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?