Bernd Petrovitsch wrote:>>>It depends on the definition of "character". There are other standards>>>which define "character" as "byte".>>>>Certainly. However, you specifically talked about 'wc -c', and, in>>wc(1), atleast in the implementation commonly used on Linux, characters>>and bytes are not the same.> > > Yes, now since multi-byte character sets gets more commonly used.> However, I don't think you get this into the C standard. But we are now> far off the discussion ....

It does indeed, so just one final clarification. wc(1) is not partof the C standard - ISO 9899 does not talk about command line utilitiesat all. The relevant standard is POSIX; IEEE Std 1003.1, 2004 Editionsays, in

-c Write to the standard output the number of bytes in each input file.[...]-m Write to the standard output the number of characters in each inputfile.

[...]RATIONALE[...]The -c option stands for "character" count, even though it counts bytes.This stems from the sometimes erroneous historical view that bytes andcharacters are the same size. Due to international requirements, the -moption (reminiscent of "multi-byte") was added to obtain actualcharacter counts.