Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nanopb
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
le
nanopb
Commits
2b0db997
Commit
2b0db997
authored
6 years ago
by
Petteri Aimonen
Browse files
Options
Downloads
Patches
Plain Diff
More backslash escape fixes
parent
f313dee3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/migration.rst
+3
-3
3 additions, 3 deletions
docs/migration.rst
with
3 additions
and
3 deletions
docs/migration.rst
+
3
−
3
View file @
2b0db997
...
...
@@ -18,11 +18,11 @@ Fix handling of string and bytes default values
-----------------------------------------------
**Rationale:** Previously nanopb didn't properly decode special character
escapes like \200 emitted by protoc. This caused these escapes to end up
escapes like
\
\200 emitted by protoc. This caused these escapes to end up
verbatim in the default values in .pb.c file.
**Changes:** Escapes are now decoded, and e.g. "\200" or "\x80" results in
{0x80} for bytes field and "\x80" for string field.
**Changes:** Escapes are now decoded, and e.g. "\
\
200" or "\
\
x80" results in
{0x80} for bytes field and "\
\
x80" for string field.
**Required actions:** If code has previously relied on '\\' in default value
being passed through verbatim, it must now be changed to '\\\\'.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment