apple / pkl

A configuration as code language with rich validation and tooling.
https://pkl-lang.org
Apache License 2.0
10.18k stars 274 forks source link

Error occurs when processing files with Japanese names #653

Open kaniza opened 4 weeks ago

kaniza commented 4 weeks ago

I was trying to use the pkl command to process files with Japanese names. However, an error occurs when attempting to evaluate the file.

Information for Bug Report

Steps to Reproduce

  1. Check the version of pkl:

    $ pkl --version
    Pkl 0.26.3 (macOS 14.4.1, native)
  2. Create a file en.pkl and check the content:

    $ cat en.pkl
    name = ""
  3. Evaluate the file with pkl:

    $ pkl eval en.pkl
    name = ""
  4. Copy the file and rename it to a Japanese name:

    $ cp en.pkl 日本語.pkl
  5. Attempt to evaluate the Japanese-named file:

    $ pkl eval 日本語.pkl
    An unexpected error has occurred. Would you mind filing a bug report?
bioball commented 4 days ago

Definitely a bug, thanks for the report!