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

Re: git-rebase (1.5.0.6) errors

From
PTPaolo Teti <paolo.teti@gmail.com>
Date
May 18, 2007, 11:29 UTC
Message-ID
<34a7ae040705180429w454e900cp12426e7164725d45@mail.gmail.com>
In-Reply-To
<86y7jmmmnq.fsf@lola.quinscape.zz>
2007/5/18, David Kastrup <dak@gnu.org>:
Show 24 quoted lines
> "Paolo Teti" <paolo.teti@gmail.com> writes:
>
> > 2007/5/18, Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>:
> >> Hi,
> >>
> >>
> >> ijjarvin@kivilampi-30:~/work/src/submit$ git-rebase net-2.6.22-origin
> >> First, rewinding head to replay your work on top of it...
> >> HEAD is now at d739437... [IPV4]: Correct rp_filter help text.
> >> fatal: cannot convert from utf-8 to utf-8
> >
> >
> > Now I can't test or try to reproduce your error,
> > but looking at the source code (only with gitweb)
> > I have found another bad use of size_t instead of ssize_t
> > in the reencode_string(..) that take part at the conversion process.
> >
> > Using size_t in the next portion of code the check "count == -1" is
> > never true.
>
> Only if size_t is a larger type than int (could be on x86-64 and alpha
> architectures).  Other than that, this comparison would work.  Which
> does not mean that this does not warrant fixing, but it is not
> necessarily the cause of this problem.
1. Yes this is not necessarily the cause.. I agree.
2. size_t as I know is unsigned and ssize_t is the signed version of
size_t.. so to
    compare with -1 we want ssize_t.
Previous: David KastrupNext: Ilpo Järvinen
Message 4 of 9 in “git-rebase (1.5.0.6) errors”
  1. Ilpo JärvinenMay 18, 2007
  2. Paolo TetiMay 18, 2007
  3. David KastrupMay 18, 2007
  4. Paolo TetiMay 18, 2007
  5. Ilpo JärvinenMay 18, 2007
  6. Paolo TetiMay 18, 2007
  7. Jan HudecMay 20, 2007
  8. Ilpo JärvinenMay 20, 2007
  9. Paolo TetiMay 18, 2007

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.