From: Nigel Magnay <nigel.magnay@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Git ML <git@vger.kernel.org>
Subject: Re: [JGIT] maven build fails on OS X
Date: Fri, 6 Feb 2009 20:08:18 +0000 [thread overview]
Message-ID: <320075ff0902061208l6671c2a0m3d4b07b97025b53a@mail.gmail.com> (raw)
In-Reply-To: <20090206153155.GL26880@spearce.org>
> I've looked at it and gave up. I don't know what Maven is doing here
> on the Mac. Maybe fresh eyes will have a better chance at fixing it.
>
> My experience with Maven is it works about 5% of the time, and the
> other 95% of the time you have to work around it by skipping tests,
> or by writing massive blocks of XML in your pom.xml file, or by
> redesigning your entire project directory structure and revision
> control system to use SVN instead of Git.
Ok. It's not (just) a Maven problem as I can get the same tests to
fail in Eclipse by setting the Console Encoding to MacRoman (which is
the default Charset.defaultCharset() when running a java app on OS X).
Doing some digging, just on testGetText_DiffCc :- where it fails, I
look at the output of each doing getBytes() - so will be in MacRoman -
(cols are byte no, exp before the replace, after the replace and the
result of fh.getScriptText. I get :
94 32 32,32
95 43 43,43 ++
96 116 116,116 tt
97 101 101,101 ee
98 115 115,115 ss
99 116 116,116 tt
100 32 32,32
101 -127 -127,-59 !!!!!!!!!!!!!!!!!!!!!!!!!!!! ??
102 110 110,110 nn
103 103 103,103 gg
104 115 115,115 ss
105 116 116,116 tt
106 114 114,114 rr
107 -102 -102,-10 !!!!!!!!!!!!!!!!!!!!!!!!!!!! ??
108 109 109,109 mm
109 10 10,10
-10 (F6) is ^, and -59 (C5) is some wavy lines..
However, I'm slightly confused - possibly because I don't know what
/should/ be the case. In
exp.replace("\303\205ngstr\303\266m", "\u00c5ngstr\u00f6m")
is \303\205 really meant to represent U+00C3 and U+0085 ? Shouldn't
the replace be being done on bytes rather than strings?
next prev parent reply other threads:[~2009-02-06 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 15:08 [JGIT] maven build fails on OS X Nigel Magnay
2009-02-06 15:31 ` Shawn O. Pearce
2009-02-06 20:08 ` Nigel Magnay [this message]
2009-02-06 21:07 ` Robin Rosenberg
2009-02-06 20:54 ` Robin Rosenberg
2009-02-06 21:12 ` Nigel Magnay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=320075ff0902061208l6671c2a0m3d4b07b97025b53a@mail.gmail.com \
--to=nigel.magnay@gmail.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).