cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

SSL certificate verification problem. #151

Open hbayindir opened 6 years ago

hbayindir commented 6 years ago

I've probably found an edge case in nvPY's code. I'm currently stuck debugging it, so I need help.

All help and tips are greately appreciated. I'll fork and create a pull request for the fix, but I was unable to find a solution yet. All help is greatly appreciated!

yuuki0xff commented 6 years ago

humm... that's strange indeed.

would you tell me these results?

hbayindir commented 6 years ago

Of course.

nvpy-environment.txt openssl-command-result.txt python-interpreter-environment.txt

hbayindir commented 6 years ago

I also have taken an environment snapshot from a system with a working nvPY, and I found the problem. My system locale on this system is tr_TR.UTF-8. Working system is en_US.UTF-8, and when I export en_US.UTF-8 to nvPY, it works as it should.

This is a notorious problem. In Turkish, we have two different Is. ı,I,i,İ. Unlike English and other languages which have the capitalization relation i <-> I, we have something more different: ı <-> I & i <-> İ. Probably code is doing a similar conversion somewhere, and things go south.

I think it should be fixed.

Obligatory Coding Horror story → What's wrong with Turkey?