Search code examples
commentscode-formattingpar

using par for formatting comments in code with international characters


I'm using Par (in linux) to get nice comments formatting quickly. The problem is that now I want to introduce comments that include some international characters, like áéíóú or äëïöü...

The program Berkeley Par considers these international characters as 2 ASCII characters (I believe) and it outputs the comments somehow broken because it doesn't count characters properly.

Did you face this problem before? Do you have any solution? Ideas?


Solution

  • You mean the code from Add multibyte characters support in "par" (or just the patches applied to the original source) don't work for you?

    Then maybe it is a problem with your shell or the font it uses. Are you sure the shell and font you use is able to reproduce unicode characters