zopencommunity / zopencommunity/gitport

git shouldn't tag the files if the iconv fails (i.e. if the file isn't converted)

Open
#175 0 comments 0 reactions 1 assignee View on GitHub

@HarithaIBM is already working on this.

Since Mar 12, 2026.

bug
Dominant language
Shell
Stars
10
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Cloning of a git repo with files that has to be autoconverted to IBM-1047 fails with error:

error: failed to encode 'buckets/sdb/v2s40/plxsrc/plx00314.plx' from UTF-8 to ibm-1047

So issue mentioned is:

the file hasn't been converted, but the tag does seem to have been changed. So now I have a file that has an IBM-1047 tag, but is really UTF-8, so when I open it in vim, I see gibberish.

More info in
https://ibm-systems-z.slack.com/archives/C039TNSH9J5/p1773079327579579

So suggested fix is : avoid setting the tag in the case of an error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.