Skip to content

fix(cpp): use RFC3966 extension syntax in FormatByPattern - #4087

Open
thevilledev wants to merge 1 commit into
google:masterfrom
thevilledev:fix/cpp-format-by-pattern-rfc3966-extension
Open

thevilledev wants to merge 1 commit into
google:masterfrom
thevilledev:fix/cpp-format-by-pattern-rfc3966-extension

Conversation

@thevilledev

Copy link
Copy Markdown

FormatByPattern always appended the extension in national style, so RFC3966 / RFC 5341 output ended in " ext. 1234" instead of ";ext=1234". That is not a valid tel URI and differs from Format(), which already formats the extension for the requested number format, and from the Java and JavaScript formatByPattern. Pass the requested number format through.

FormatByPattern always appended the extension in national style, so
RFC3966 output ended in " ext. 1234" instead of ";ext=1234". That is
not a valid tel URI and differs from Format(), which already formats
the extension for the requested number format, and from the Java and
JavaScript formatByPattern. Pass the requested number format through.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
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.

1 participant