Skip to content

fix(giop): use Latin-1 charset to encode op name#767

Merged
ngmr merged 1 commit intoOpenLiberty:mainfrom
joe-chacko:fix/specify-charset-when-getting-bytes-for-op-name
Feb 25, 2026
Merged

fix(giop): use Latin-1 charset to encode op name#767
ngmr merged 1 commit intoOpenLiberty:mainfrom
joe-chacko:fix/specify-charset-when-getting-bytes-for-op-name

Conversation

@joe-chacko
Copy link
Member

  • Replace String.getBytes() with String.getBytes(ISO_8859_1) in GIOPOutgoingMessage
  • Add static import for StandardCharsets.ISO_8859_1
  • Remove unused ISO_LATIN_1 import from GIOPClient
  • Reorder imports in GIOPClient for consistency
  • Ensure operation names are consistently encoded using ISO-8859-1 charset in GIOP 1.0, 1.1, and 1.2 messages

This change makes the charset encoding explicit rather than relying on the platform default, improving portability and preventing potential encoding issues across different systems.

- Replace String.getBytes() with String.getBytes(ISO_8859_1) in GIOPOutgoingMessage
- Add static import for StandardCharsets.ISO_8859_1
- Remove unused ISO_LATIN_1 import from GIOPClient
- Reorder imports in GIOPClient for consistency
- Ensure operation names are consistently encoded using ISO-8859-1 charset in GIOP 1.0, 1.1, and 1.2 messages

This change makes the charset encoding explicit rather than relying on the platform default, improving portability and preventing potential encoding issues across different systems.
@joe-chacko joe-chacko self-assigned this Feb 24, 2026
@joe-chacko joe-chacko requested a review from ngmr February 24, 2026 22:57
@ngmr ngmr merged commit 13403cd into OpenLiberty:main Feb 25, 2026
2 checks passed
@joe-chacko joe-chacko deleted the fix/specify-charset-when-getting-bytes-for-op-name branch February 25, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants