Skip to content

Conversation

@sylvestre
Copy link
Contributor

No description provided.

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

stdout,
"{}={}{line_ending}",
n.to_string_lossy(),
v.to_string_lossy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's not correct because GNU env doesn't output a lossy string:

$ FOO=$'\xFF\xFE' env | hexdump -C
46 4f 4f 3d ff fe  // I omitted everything else

I don't know about the key, I wasn't able to create an env var whose key contains a non-utf8 char.

Copy link

@Leont Leont Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Environmental variables aren't necessarily the utf8-encoded strings we want them to be. They're null terminated binary strings (hopefully containing a = but I'm not even sure that is enforced). This is unfortunately the kind of place where that distinction matters.

@cmuellner
Copy link

@cakebaker, context for this PR can be found here: https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2132941

@cmuellner
Copy link

I realized today that this issue comes from a failing Perl test.
I have reported it to Perl upstream here: Perl/perl5#23973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants