git/list[1] front-page[2] threads[3] people[4] search[5] about
 

GSoC 2024 [RFC PATCH]

From
ANAishwarya Narayanan <aishnana.03@gmail.com>
Date
Mar 27, 2024, 13:04 UTC
Message-ID
<CAHCXyj09EKKdBOAdQ319LGY-6GbQw+HHp9u_Mbpf4C+wF6ReSw@mail.gmail.com>
Dear Git Organization,

I hope this email finds you well. I've prepared a patch to address an issue related to the handling of exit codes in our test suite. The changes ensure that the exit code of the write_utf16 and write_utf32 functions is properly captured and not suppressed, improving the reliability of our testing process. Below are the details of the patch:

---
 t/t0028-working-tree-encoding.sh | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/t/t0028-working-tree-encoding.sh b/t/t0028-working-tree-encoding.sh
index ad151a3467..f372c14bc0 100755
--- a/t/t0028-working-tree-encoding.sh
+++ b/t/t0028-working-tree-encoding.sh
@@ -19,10 +19,13 @@ test_expect_success 'setup test files' '
  echo "*.utf16 text working-tree-encoding=utf-16" >.gitattributes &&
  echo "*.utf16lebom text working-tree-encoding=UTF-16LE-BOM"
>>.gitattributes &&
  printf "$text" >test.utf8.raw &&
- printf "$text" | write_utf16 >test.utf16.raw &&
- printf "$text" | write_utf32 >test.utf32.raw &&
- printf "\377\376"                         >test.utf16lebom.raw &&
- printf "$text" | iconv -f UTF-8 -t UTF-16LE >>test.utf16lebom.raw &&
+ test_utf16_raw=$(printf "$text" | write_utf16) &&
+ test_utf32_raw=$(printf "$text" | write_utf32) &&
+ test_utf16lebom_raw=$(printf "\377\376"; printf "$text" | iconv -f
UTF-8 -t UTF-16LE) &&
+ echo "$test_utf16_raw" > test.utf16.raw &&
+ echo "$test_utf32_raw" > test.utf32.raw &&
+ echo "$test_utf16lebom_raw" > test.utf16lebom.raw &&
+

  # Line ending tests
  printf "one\ntwo\nthree\n" >lf.utf8.raw &&
-- 
I kindly request your review and any remarks or changes you may have.
Please accept my apologies for any mistakes or oversights.

Thank you for your time and attention.

Best regards, Aishwarya Narayanan
Next: Patrick Steinhardt
Message 1 of 2 in “GSoC 2024 [RFC PATCH]”
  1. Aishwarya NarayananMar 27, 2024
  2. Patrick SteinhardtMar 27, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.