# translate-c: Escape non-ASCII characters that appear in macros · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8e631ee3e7b4e7b4466c0efafaffb4151447785f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8e631ee3e7b4e7b4466c0efafaffb4151447785f

Requested commit: 8e631ee3e7b4e7b4466c0efafaffb4151447785f

Commit: 8e631ee3e7b4e7b4466c0efafaffb4151447785f

Tree: 1873bad537882c07d240b8ceed55e0221f81705c

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Escape non-ASCII characters that appear in macros

Macro definitions are simply a slice of bytes, which may not be
UTF-8 encoded. If they are not UTF-8 encoded, escape non-printable
and non-ASCII characters as `\xNN`.

Fixes #12784

```

## Parents

- [9e070b653c89a9216f9dd9f78ed7c78c11460ac7](https://git.cafe/gitcafe/zig/commit/9e070b653c89a9216f9dd9f78ed7c78c11460ac7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8e631ee3e7b4e7b4466c0efafaffb4151447785f?format=markdown)
