Patch for get_word - please look

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bohdan R. Rau" <ethanak at polip.com> writes:

> Originally function get_word operates with signed char and compares it
> numerically with SPACE to check, if this character may be part of
> word. It is true only for 7-bit characters, accented letters (with
> most significant bit set) will be treated as negative

Hi,
Yes, I see the problem.  How should get_word be rewritten?  Your patch
does a lot of casting.  Could we eliminate all that with a get_u_char
function, or similar?

-- Chris



[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux