-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simdutf: simdutf_connector: in_tail: Implement UTF-16LE/UTF-16BE encoder #9468
base: master
Are you sure you want to change the base?
Conversation
d1b404a
to
4053bbd
Compare
4053bbd
to
2a515ea
Compare
655a31a
to
19a0a1a
Compare
Signed-off-by: Hiroshi Hatake <[email protected]>
df32358
to
36537a4
Compare
Signed-off-by: Hiroshi Hatake <[email protected]>
Signed-off-by: Hiroshi Hatake <[email protected]>
# This is provided for simplifying the build pipeline | ||
FLB_UNICODE_ENCODER=${FLB_UNICODE_ENCODER:-On} | ||
|
||
if [ "${FLB_DISTRO}" = "centos/6" ] || [ "${FLB_DISTRO}" = "centos/7" ] || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support CentOS 6 in OSS
|
||
if [ "${FLB_DISTRO}" = "centos/6" ] || [ "${FLB_DISTRO}" = "centos/7" ] || | ||
[ "${FLB_DISTRO}" = "centos/7.arm64v8" ]; then | ||
FLB_UNICODE_ENCODER=Off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the plan was to disable it in the PR check but enable it (with all the SCL requirements added) to the container images for release builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but, I didn't find a way how to enable SCL on CentOS7 container builds on our packaging system...
In Windows, there are lots of using UTF-16LE programs. This is because Unicode on Windows means UTF-16LE with BOM(Byte Order Mark).
In addition, there is lots of differences between UTF-16LE/UTF-16BE and UTF-8.
I added some of C, J and subdivision flags test cases for converting from UTF-16LE/UTF-16BE to UTF-8 in unit tests for in_tail plugin. This is because in_tail is the main usages to process non-UTF-8 encodings.
At first, we need to process UTF-16LE and UTF-16BE encodings.
Note that simdutf library is written in C++. So, we also provide an option (
FLB_UNICODE_ENCODER
) to turn on/off this feature.Closes #9321
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
fluent/fluent-bit-docs#1471
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.