-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
from_entries Case Sensitivity #592
Comments
@nicowilliams I see no reason not to fix this, do you?
|
I don't see how this is a bug.
|
Definitely not a bug. I think this might be better interpreted as a feature request. |
Hmmm, I don't think I object strongly to this, but maybe we should have a Consider this:
I think it's part of
Thoughts? |
FWIW, that error seems confusing. I'm not sure why that's the error that gets thrown without looking at builtin.c... I don't like the idea of having both Doing nothing isn't right either, as it leads to odd behavior, as shown in your first sample. That leaves making I'm okay with either of those, since you can do things like |
@wtlangford wrote:
It seems to me the best and simplest thing to do here is to provide
Of course the names are less important than the idea of providing an ASCII-oriented case folding functions. There's an urgent need for ASCII-oriented folding, whereas the need for full-blown Unicode-based case folding seems both less urgent and perhaps less well-defined when one takes into account performance considerations. |
@pkoppstein Unicode case mapping is a much harder task. This will not be the issue that gets us to include Unicode case mapping in jq. |
The expedient change will be to define from_entries as:
|
Amazingly active team. Thanks for the fix. |
Wellll, we've been sleepy lately. You just got lucky this time. But you're |
@nicowilliams wrote:
Yes, I was arguing the same point. Strange. |
I don't want to add even ASCII case-folding unless the name of the |
As described by another use last year regarding jq 1.3 (https://gist.github.com/opsmason/5783397), the from_entries function appears to be case sensitive. In specific, I'm trying to use it to parse AWS EC2 tags from the AWS CLI and running into this issue as the object come in with Name:xxx and Value:xxx. If I convert these to lowercase everything works as intended.
The text was updated successfully, but these errors were encountered: