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

[EGIT PATCH] Tell Eclipse not to convert some of the patch input files.

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Dec 20, 2008, 20:42 UTC
Message-ID
<1229805730-11237-1-git-send-email-robin.rosenberg@dewire.com>

By default Eclipse silently converts non-UTF-8 characters to a surrogate code point when it encounters invalid UTF-8. Since a few of the patch input files are meant to be read as bytes it is more appropriate and safer to assume ISO-8859-1 which can represent any byte sequence.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../.settings/org.eclipse.core.resources.prefs     |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/org.spearce.jgit.test/.settings/org.eclipse.core.resources.prefs b/org.spearce.jgit.test/.settings/org.eclipse.core.resources.prefs
index a2724ba..d691a8e 100644
--- a/org.spearce.jgit.test/.settings/org.eclipse.core.resources.prefs
+++ b/org.spearce.jgit.test/.settings/org.eclipse.core.resources.prefs
@@ -1,3 +1,6 @@
-#Mon Aug 11 16:05:15 PDT 2008
+#Sat Dec 20 21:21:24 CET 2008
 eclipse.preferences.version=1
+encoding//tst-rsrc/org/spearce/jgit/patch/testGetText_BothISO88591.patch=ISO-8859-1
+encoding//tst-rsrc/org/spearce/jgit/patch/testGetText_Convert.patch=ISO-8859-1
+encoding//tst-rsrc/org/spearce/jgit/patch/testGetText_DiffCc.patch=ISO-8859-1
 encoding/<project>=UTF-8
-- 
1.6.1.rc3.56.gd0306
Message 1 of 1 in “Tell Eclipse not to convert some of the patch input files.”
  1. Tell Eclipse not to convert some of the patch input files.Robin Rosenberg, Dec 20, 2008

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.