Re: [Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-25 Thread Christian Knoke
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 Hi, William Allen Simpson wrote on Jan 25, 03:53 (-0800): It is the responsibility of the developers to make the human-readable line breaks in the canonical form message. It is the responsibility of the translators to make the

Re: [Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-25 Thread William Allen Simpson
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 Egor Vyscrebentsov wrote: Maybe I can't say what I want. Trying again: strlen couldn't be used for receiving number of alphabetic characters in the string. It can be used for receiving number of 7-bit signed integer. And my point is

Re: [Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-25 Thread William Allen Simpson
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 This removes wordwrap_string() in command line handling, adding a TRANS comment tell translators the width. It was amusing to discover that civmanual used it for html. That's silly. By definition, html always handles localized wrapping

[Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-24 Thread William Allen Simpson
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 Reported in PR#40032. Egor Vyscrebentsov [EMAIL PROTECTED] writes: (For ru_RU.UTF-8 part of lines cover only half of screen width - 2 bytes/character. Easiest example - '/help' [show_help_intro]. wordwrap_string() looks to me like the

Re: [Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-24 Thread William Allen Simpson
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 Egor Vyscrebentsov wrote: On Thu, 24 Jan 2008 William Allen Simpson wrote: The issue is not strlen(). It is properly used to determine the length of a string. The issue is that strlen() has nothing to do with how much room there is

Re: [Freeciv-Dev] (PR#40043) i18n: wordwrap_string() broken for UTF-8 translations

2008-01-24 Thread Egor Vyscrebentsov
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40043 On Thu, 24 Jan 2008 William Allen Simpson wrote: Egor Vyscrebentsov wrote: On Thu, 24 Jan 2008 William Allen Simpson wrote: The issue is not strlen(). It is properly used to determine the length of a string. The issue is that