-
Notifications
You must be signed in to change notification settings - Fork 262
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
New var name in nc_rename_var() is not normalized for utf8. Should it be? #742
Comments
yes, it should be normalized.
…Sent from my iPad
On Dec 26, 2017, at 5:46 AM, Ed Hartnett ***@***.***> wrote:
In nc_rename_dim() the new name is run through nc_utf8_normalize().
But this doesn't happen with nc_rename_var().
Shouldn't it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
What kind of string can I pass to make sure that normalization is taking place? That is, what string can I pass that comes out differently after being normalized? I would like to write some tests before fixing... |
There should be a utf8 test case that tests normalization.
…Sent from my iPad
On Dec 26, 2017, at 2:50 PM, Ed Hartnett ***@***.***> wrote:
What kind of string can I pass to make sure that normalization is taking place?
That is, what string can I pass that comes out differently after being normalized?
I would like to write some tests before fixing...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
OK, I will hunt one down and add a test. |
not obvious we need a rename normalization test specifically sine i presume you will use same |
If we had a rename normalization test then this bug would have been noticed before. So of course we need a test for it. |
I am confused. Did normalization fail or was it just missing? |
Normalization is actually happening as I've just confirmed with a test. I will add the test to my current PR. When it's merged this ticket will be closed. |
In nc_rename_dim() the new name is run through nc_utf8_normalize().
But this doesn't happen with nc_rename_var().
Shouldn't it?
The text was updated successfully, but these errors were encountered: