Plan 9 from Bell Labs’s /usr/web/sources/patch/comm-utf-sort/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


For lexicographic ordering comm(1) compares chars without specified signedness. So, when 'char' is 'signed char', comm assumes that UTF-8 multibyte units appear before ASCII. Must force unsigned comparison to ensure compatibility with sort(1) beyond 7 bits. Test:
	comm <{echo Bar; echo Bär} <{echo Bär; echo Foo}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].