Skip to content

Conversation

@gthor45
Copy link

@gthor45 gthor45 commented Oct 14, 2020

Replaces ais bitset backtick with escaped single-quote in accordance with 6bit ASCII spec (Dec. 39 should be ' but was `).

@schwehr
Copy link
Owner

schwehr commented Sep 2, 2021

Thanks for making a pull request! Sorry I'm so slow at responding to libais issues and prs.

Are you sure about this? I would like that very little of libais would work if this part of the code is incorrect. A test case that works only after this fix would help convince me.

@156704883
Copy link

image The visual resemblance to a backtick (`) in some document printings is purely a typographic artifact. This distinction is critical because: AIS 6-bit ASCII subset explicitly includes 0x27 (single quote) but excludes 0x60 (backtick). Protocol compliance: Using a backtick would render the AIS message invalid, while the single quote is fully compliant.

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.

3 participants