Glenn, if you get tr -c working with multi byte characters, then -C should be easy, because -c sorts by the binary (wchar_t) value, while -C sorts by the collate order, for which wcscoll() can be used.
Olga On Fri, Oct 19, 2012 at 4:30 AM, Glenn Fowler <g...@research.att.com> wrote: > > I have a fairly old todo from Irek I think to handle multibyte -- will check > tomorrow > > On Fri, 19 Oct 2012 00:50:40 +0200 Roland Mainz wrote: >> On Mon, Oct 15, 2012 at 1:02 PM, Cedric Blancher >> <cedric.blanc...@googlemail.com> wrote: >> > On 13 October 2012 16:40, Glenn Fowler <g...@research.att.com> wrote: >> >> ast-ksh 2012-10-12 alpha posted >> > >> > LGTM (looks good to me), but od and tr are missing. We use the >> > combination of od+head+tail and ~(X) to classify binary files and tr >> > for quick&dirty conversion jobs (like dos2unix and Japanese >> > processing). > >> (Stupid ?!) question (mostly for Glenn): Is AST "tr" aware of >> multibyte characters ? > >> ---- > >> Bye, >> Roland > >> -- >> __ . . __ >> (o.\ \/ /.o) roland.ma...@nrubsig.org >> \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer >> /O /==\ O\ TEL +49 641 3992797 >> (;O/ \/ \O;) > > _______________________________________________ > ast-developers mailing list > ast-developers@research.att.com > https://mailman.research.att.com/mailman/listinfo/ast-developers -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanov...@gmail.com \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developers