chksystemd Re: SystemD - F-16

T.C. Hollingsworth tchollingsworth at gmail.com
Sun Nov 13 14:22:51 UTC 2011


On Sun, Nov 13, 2011 at 6:46 AM, suvayu ali <fatkasuvayu+linux at gmail.com> wrote:
> I can't seem to pipe the output or redirect it to a file. Try either
> of those gives me this backtrace:
>
> graphical.target
> Traceback (most recent call last):
>  File "/usr/bin/chksystemd", line 241, in <module>
>    main()
>  File "/usr/bin/chksystemd", line 92, in main
>    list_deps(args.unit, targets)
>  File "/usr/bin/chksystemd", line 180, in list_deps
>    print_deps(target, False)
>  File "/usr/bin/chksystemd", line 203, in print_deps
>    print_dep(prefix, unit, True, by)
>  File "/usr/bin/chksystemd", line 210, in print_dep
>    print_deps(unit, by, prefix=''.join(['│ ', prefix]), required=required)
>  File "/usr/bin/chksystemd", line 195, in print_deps
>    print prefix,
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2502' in
> position 0: ordinal not in range(128)

Yay for unicode bugs!  Fixed in chksystemd-2 (along with a brown paper
bag bug that made the "reset" action not work), which is now available
at http://tchol.org/chksystemd/

>
> Hope this helps.
>
> PS: I think this is a very useful utility, maybe its worthwhile
> submitting this for inclusion?

I definitely will once it's got some more testing.

-T.C.


More information about the users mailing list