<div dir="ltr"><div dir="ltr">On Wed, Oct 16, 2019 at 3:27 PM Rob Landley <<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Right now toys/posix/ls.c only puts one space between filenames in -C or -x mode<br>
(which is the default output), and I have a todo item to increase that to 2<br>
spaces (which is what other implementations do). The reason is I misunderstood<br>
how unicode worked and it turns out combining characters don't come _after_ the<br>
character they combine with but before, which means a filename that ends with a<br>
combining character will attach to the space after the filename, and thus make<br>
two filenames visually run together unless you have a two space gap. [...]</blockquote><div><br></div><div>I thought the order was the other way around (base character, then combining character). I tested it with:</div><div><br></div><div>printf 'o\xcc\x81o\n' >A.txt<br></div><div>google-chrome A.txt</div><div><br></div><div>I see: óo</div><div><br></div><div>I also tried printf 'x \xcc\x81a\n', and I sometimes see "x á", but the terminal seems to think the accent is above the space (e.g. selecting 'a' doesn't select the accent). The accent appears above the space if I use a non-monospace font in a browser.</div><div><br></div><div>-Ryan<br></div><div><br></div></div></div>