Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] piconv: say in *some* implementations of iconv #17520

Closed
jidanni opened this issue Feb 2, 2020 · 1 comment
Closed

[doc] piconv: say in *some* implementations of iconv #17520

jidanni opened this issue Feb 2, 2020 · 1 comment

Comments

@jidanni
Copy link
Member

jidanni commented Feb 2, 2020

piconv man page says:

   -f,--from from_encoding
       Specifies the encoding you are converting from.  Unlike iconv, this option can be omitted.  In such
       cases, the current locale is used.

   -t,--to to_encoding
       Specifies the encoding you are converting to.  Unlike iconv, this option can be omitted.  In such
       cases, the current locale is used.

But in most / some / current ? real iconv it can also be omitted. So say "in some implementations of iconv...'

       Therefore, when both -f and -t are omitted, piconv just acts like cat.

Well it actually just prints a usage message.

@richardleach
Copy link
Contributor

piconv is pulled in from Encode (https://metacpan.org/dist/Encode) which is a CPAN-first module.

It already has some open tickets regarding the behaviour when both -f and -t are omitted, e.g.

@jidanni - If you want to raise any tickets directly against Encode regarding piconv documentation of iconv behaviour, https://rt.cpan.org/Public/Dist/Display.html?Name=Encode or https://github.com/dankogai/p5-encode are the places to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants