Subject: | 'setup' creates config.ini with locale encoding (portability issue) |
This is on Win32. My name is "Olivier Mengué", which is non-pure ASCII.
When running "dzil setup", the generated "%APPDATA%\.dzil\config.ini"
has been written using code page "cp850" which is the code page of the
console. This makes the config.ini system-locale-dependent.
When creating a new distribution after, the dist.ini is also created in
code page "cp850": the initial problem is propagated. This makes the
dist.ini system-locale-dependent and so is a portability problem when
sharing the project with other operating systems.
Instead, config.ini (and any D::Z config file) I/O should be done with
an explicit encoding (UTF-8).
How to reproduce:
C:\Users\Dolmen\Documents\Code\Perl\Patch-Zilla>dzil setup
What's your name? Olivier Mengué
What's your email address? dolmen@cpan.org
Who, by default, holds the copyright on your code? [Olivier Mengué]:
What license will you use by default (Perl_5, BSD, etc.)? [Perl_5]:
Do you want to enter your PAUSE account details? [y/N]: y
What is your PAUSE id? [DOLMEN]:
What is your PAUSE password? xxxxxxxxxxxxxxxxxx
config.ini file created!
--
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/