fix: add encoding='utf-8' to open() calls to prevent UnicodeDecodeError on non-UTF-8 systems#4287
fix: add encoding='utf-8' to open() calls to prevent UnicodeDecodeError on non-UTF-8 systems#4287nandithasalim wants to merge 1 commit into
Conversation
…or on non-UTF-8 systems Fixes traceloop#4286
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo ChangesUTF-8 Encoding Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #4286
On Windows systems with non-UTF-8 locales (e.g. GBK), open() calls
without explicit encoding crash with UnicodeDecodeError.
Added encoding='utf-8' to text-mode open() calls in:
Summary by CodeRabbit