Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Bug: source member won't open (broken hex with db2util) #80

Open
richardm90 opened this issue Jul 8, 2020 · 10 comments
Open

Bug: source member won't open (broken hex with db2util) #80

richardm90 opened this issue Jul 8, 2020 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@richardm90
Copy link

Use tags for the following:

  • IBM i version: 7.4
  • System (Windows or Mac OS): Windows 10
  • ILEditor2 0.6.0

Using the member browser I filtered on one of my source files, this produced a list of the four members I was interested in.

I was able to open all but one of the four members.

When I click that source member I get the Loading... message briefly but then nothing. No feedback at all. As I say the other three source members opened fine.

The member that doesn't open is the largest of the four, 513 lines, but I can open larger members.

@richardm90 richardm90 added the bug Something isn't working label Jul 8, 2020
@worksofliam
Copy link
Contributor

Hey @richardm90

What is the name of the member? Any odd characters in there?

We'll get some feedback in. Are you using db2util?

@worksofliam worksofliam self-assigned this Jul 8, 2020
@richardm90
Copy link
Author

@worksofliam , the member name does include a hash (pound symbol) but then a lot of my member names do.

image

In the image you'll see the four members I mentioned. All but the last member will open. Could there be something within the member (unusual character) that stops it loading? I've scanned through the source and can't see any obvious problem characters.

I have db2util loaded on the server. Do I specifically need to do something to/with it?

@worksofliam
Copy link
Contributor

@richardm90 thanks for this info!

Do I specifically need to do something to/with it?

No, but it uses a different mechanism to fetch the content of the source. Are you able to use CPYTOSTMF against that member and send us a copy? (support[at]ileditor[dot]dev)

I am hoping we can recreate this on our end.

Thanks!

@richardm90
Copy link
Author

OK, I found it. There is an unusual character in the file, which is obvious when I view the source through SEU but was hidden when viewed through RDi. It was part of a comment that I copied in (using RDi) from a PDF. In RDi it shows as a dash (minus), which is what I expected but in SEU it shows as a ?.

The source file has CCSID 285 and the hex of the rogue character is x'3F'.

For completeness I'll send the source file as requested.

@worksofliam
Copy link
Contributor

worksofliam commented Jul 10, 2020

x'3F' is end of transmission.

Is there any reason you've got this in your source? I've seen it a few times but the reason isn't clear to me.

Edit: turns out it adds color to SEU....

@richardm90
Copy link
Author

This wasn't deliberate. I copied some comment text in from a PDF file and the dash came across as x'3F' rather than a dash. Visually it looked fine in RDi, and it opened in RDi, but when I looked at it in SEU it was obvious there was an untranslatable character.

@worksofliam
Copy link
Contributor

Ah, ok. Thanks @richardm90!!

I am currently looking into methods of removing the odd characters when the member is being downloaded. Of course, this only happens with db2util enabled.

@worksofliam worksofliam changed the title Bug: source member won't open Bug: source member won't open (db2util) Jul 10, 2020
@worksofliam worksofliam changed the title Bug: source member won't open (db2util) Bug: source member won't open (broken hex with db2util) Aug 6, 2020
@dkJohan
Copy link

dkJohan commented Aug 20, 2020

Hi,
we have a similar problem with danish charcters in program names. Program names containing Æ, Ø and Å in the name does not load. Using the same letters inside a program works though.

@worksofliam
Copy link
Contributor

@dkJohan Are you using db2util or not?

@dkJohan
Copy link

dkJohan commented Aug 20, 2020

@dkJohan Are you using db2util or not?

We are not using db2util / Johan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants