Skip to content
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

Fix utf8 split operation #420

Merged
merged 6 commits into from
Feb 20, 2025
Merged

Fix utf8 split operation #420

merged 6 commits into from
Feb 20, 2025

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Feb 19, 2025

Copy link

changeset-bot bot commented Feb 19, 2025

🦋 Changeset detected

Latest commit: 0049c93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@livekit/rtc-node Patch
@livekit/rtc-node-darwin-arm64 Patch
@livekit/rtc-node-darwin-x64 Patch
@livekit/rtc-node-linux-arm64-gnu Patch
@livekit/rtc-node-linux-x64-gnu Patch
@livekit/rtc-node-win32-x64-msvc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -301,13 +301,13 @@ export class LocalParticipant extends Participant {
const writableStream = new WritableStream<string>({
// Implement the sink
async write(text) {
for (const textChunk in splitUtf8(text, STREAM_CHUNK_SIZE)) {
for (const textByteChunk of splitUtf8(text, STREAM_CHUNK_SIZE)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the in vs of bug here is the same as livekit/client-sdk-js#1412

@lukasIO lukasIO requested review from bcherry, nbsp and longcw February 19, 2025 10:06
@lukasIO lukasIO changed the title Improve utf8 split operation Fix utf8 split operation Feb 19, 2025
@lukasIO lukasIO requested a review from Ocupe February 19, 2025 10:47
@lukasIO lukasIO merged commit 794852a into main Feb 20, 2025
13 checks passed
@lukasIO lukasIO deleted the lukas/better-utf8-split branch February 20, 2025 07:10
@github-actions github-actions bot mentioned this pull request Feb 17, 2025
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.

2 participants