UTF-8 encoding for oci session authenticate when files in directory with non-ascii characters
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
Hi,
I found out that when I authenticate and my home dir containts non-ascii characters (my name), then text file is has malformed values.
Could you take a look?
Thank you
Ivos
home dir: c:\Users\IvoŠmíd
content of oci config file:
[DEFAULT]
fingerprint=xx:xx:44:68:94:d7:94:f0:f1:46:b6:79:5f:xx:xx:xx
key_file=C:\Users\IvoŠmíd\.oci\sessions\DEFAULT\oci_api_key.pem
tenancy=ocid1.tenancy.oc1..aaaaaaafoooooooooooooooobaaaaaaaaaaaaaaar
region=eu-frankfurt-1
security_token_file=C:\Users\IvoŠmíd\.oci\sessions\DEFAULT\token
When I open it in Notepad++ it says ANSI.
And values are malformed to
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing session authentication on Windows with the non-ASCII home path C:\Users\IvoŠmíd and inspect how the OCI config and session files are written. Done means the generated text files retain correct UTF-8 values and authentication succeeds without malformed paths or contents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100