-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some 5250 attribute bytes are not preserved #2211
Comments
IMO, not a bug. This has the way it has always been in VS Code. It's the way it gets converted from the server. We always read UTF8 or ASCII from the server and never as EBCDIC (even if EBCDIC is returned). 'SEU Color' mode was a hack to better support SEU users, but actually it was truly a pain to maintain and not something you see outside IDEs. I need more opinions on this, but I believe we going to leave it as is, and perhaps add a warning if the document contains any of those bytes (if even possible) and offer to clean it up. Offering to clean it up would be nice if we can. |
@jkyeung I am working on a solution. Is it possible for you to share an SQL statement with me so I can insert rows into a member with that same content you had? Thanks! |
`cl: crtsrcpf buck/vscode rcdlen(112) mbr(*none) text('Samples for testing VS Code'); insert into buck.vscode (srcseq, srcdat, srcdta) |
Thanks, Buck! I specifically left out some of the "working as designed" codes to make the screenshots smaller, but if it were me doing the testing and development, I would include all of them. |
Unfortunately, the 'code' tag still stripped out the spaces :-(
The 5250 Functions Reference manual is the canonical reference. |
Nice! I don't think I was aware of that particular manual. I did see someone else's chart online at some point, but it had an error or two. It was still instructive to try it empirically, and understand the bit patterns, because I have never seen anything (from IBM or otherwise) that talks about two quirks in particular:
|
I have "Show Seu Colors" disabled. I have a source member with attribute bytes. This is what the member initially looks like in SEU:
This is what it looks like when I open it in VS Code:
Notice especially that X'25' has become a linefeed, and the source has one more line than it started with.
After saving it in VS Code without doing any editing, and reopening it in SEU, it looks like this:
Notice that besides the unwanted linefeed (for X'25'), X'3F' has now become '\Z' (two characters, backslash followed by 'Z').
The expected behavior is that both of those attribute bytes (as well as any others) survive the round trip back to the IBM i.
Extension version: v2.12.1
IBM i OS version: 7.4
The text was updated successfully, but these errors were encountered: