Title: macOS /usr/bin/patch cause obscure failures and stalls · Issue #225 · uutils/diffutils · GitHub
Open Graph Title: macOS /usr/bin/patch cause obscure failures and stalls · Issue #225 · uutils/diffutils
X Title: macOS /usr/bin/patch cause obscure failures and stalls · Issue #225 · uutils/diffutils
Description: macOS' /usr/bin/patch and GNU patch have very subtle incompatibilities that cause only some "more advanced" tests to fail in obscure and very time-consuming ways - while other tests pass. In some cases (depending on test threads racing),...
Open Graph Description: macOS' /usr/bin/patch and GNU patch have very subtle incompatibilities that cause only some "more advanced" tests to fail in obscure and very time-consuming ways - while other tests pass. In some c...
X Description: macOS' /usr/bin/patch and GNU patch have very subtle incompatibilities that cause only some "more advanced" tests to fail in obscure and very time-consuming ways - while other tests p...
Opengraph URL: https://github.com/uutils/diffutils/issues/225
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS /usr/bin/patch cause obscure failures and stalls","articleBody":"macOS' /usr/bin/patch and GNU patch have very subtle incompatibilities that cause only some \"more advanced\" tests to fail in obscure and very time-consuming ways - while other tests pass. In some cases (depending on test threads racing), the lack of newlines in some test data even causes the whole test suite to stall.\n\n\n```\nfailures:\n context_diff::tests::test_permutations\n context_diff::tests::test_permutations_empty_lines\n context_diff::tests::test_permutations_reverse\n unified_diff::tests::test_permutations\n unified_diff::tests::test_permutations_empty_lines\n unified_diff::tests::test_permutations_missing_line_ending\n unified_diff::tests::test_permutations_reverse\n\ntest result: FAILED. 118 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 13.50s\n\n```\nExamples:\n\n```\ndiff: \"--- target/unified-diff//alef\\t2026-05-06 17:34:45.259112903 -0400\\n+++ target/unified-diff//alef\\t2026-05-06 17:34:45.259112903 -0400\\n@@ -1,4 +1,4 @@\\n-a\\n-c\\n+b\\n+d\\n f\\n h\\n@@ -5,2 +5,2 @@\\n-i\\n+j\\n l\\n\"\nalef: \"a\\nc\\nf\\nh\\ni\\nl\\n\"\nbet: \"b\\nd\\nf\\nh\\nj\\nl\\n\"\npatching file 'target/unified-diff//alef'\n1 out of 2 hunks failed--saving rejects to 'target/unified-diff//alef.rej'\n\n---- context_diff::tests::test_permutations_reverse stdout ----\n\nthread 'context_diff::tests::test_permutations_reverse' (14471508) panicked at src/context_diff.rs:718:33:\nassertion failed: `(left == right)`\n\nDiff \u003c left / right \u003e :\n [\n 98,\n 10,\n\u003c 100,\n\u003c 10,\n\u003c 99,\n\u003c 10,\n\u003c 98,\n\u003c 10,\n\u003c 97,\n\u003c 10,\n ]\n\n```","author":{"url":"https://github.com/marc-hb","@type":"Person","name":"marc-hb"},"datePublished":"2026-05-06T21:36:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/225/diffutils/issues/225"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff3d219f-e59e-f657-8521-3faca3dcc8af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBA0:3F9EED:CEB3F:12F269:6A4DFB62 |
| html-safe-nonce | aa8c245b13dbd400f913fb566f7778978bd09488edbf4ec5856f9036464e5fa8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkEwOjNGOUVFRDpDRUIzRjoxMkYyNjk6NkE0REZCNjIiLCJ2aXNpdG9yX2lkIjoiNzM0NDcwNjgxMDU2Mzc3Njk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8914565243aefd51500581150b05b1ae263a2bbb55b59edeeb097026ba015d25 |
| hovercard-subject-tag | issue:4394598627 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uutils/diffutils/225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e53d194efd0c35b4ffe8bf6cd4c1ab609d5cc13f64f9e9f78f0159e1c53ed43/uutils/diffutils/issues/225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e53d194efd0c35b4ffe8bf6cd4c1ab609d5cc13f64f9e9f78f0159e1c53ed43/uutils/diffutils/issues/225 |
| og:image:alt | macOS' /usr/bin/patch and GNU patch have very subtle incompatibilities that cause only some "more advanced" tests to fail in obscure and very time-consuming ways - while other tests pass. In some c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | marc-hb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| go-import | github.com/uutils/diffutils git https://github.com/uutils/diffutils.git |
| octolytics-dimension-user_id | 5148717 |
| octolytics-dimension-user_login | uutils |
| octolytics-dimension-repository_id | 341787720 |
| octolytics-dimension-repository_nwo | uutils/diffutils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341787720 |
| octolytics-dimension-repository_network_root_nwo | uutils/diffutils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4314b1df11fa8a565684f3a72dc971e3785da365 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width