Comments (7)
I agree, and wmiir does not seem to have this problem:
wmiir xwrite /rbar/0-mpd "label ’"
from rumai.
Hi,
I can confirm this issue. After updating rbar field with an utf-8 character it crashes with the above message in wmiirc.log and also tags switching stops working. I cann't use localised date info or MPD titles/artist names with localised chars.
I suspect it's caused by hardcoded sizes for characters (only ASCII is handled) for communication stream in IXP Rumai module.
Is there a chance this bug/misfeature will be fixed soon ?
from rumai.
I'm pretty busy these days; feel free to contribute a patch. :)
from rumai.
I am using ruby 1.9.2p180 and my MPD status applet is able to write Unicode text to the bar label:
>> fs.rbar['0-mpd'].read
"colors #dcdcdc #343434 #444444\nlabel (mpd) \xC3\x98ystein Sev\xC3\xA5g: Consolation\n"
Notice that the UTF-8 characters are expressed as two bytes instead of a single \u{...}
compound. Of course, this isn't a solution for the original issue, but it is somewhat puzzling.
>> puts "\xC3\x98ystein Sev\xC3\xA5g"
Øystein Sevåg
nil
>> puts "\xC3\x98ystein Sev\xC3\xA5g".encoding
UTF-8
nil
from rumai.
The problem was how Ruby 1.9 counts the length of a string: it counts characters, not bytes. I've got an ad-hoc solution working locally but my existing unit tests are failing. I'll push an update once I fix the failing tests.
from rumai.
Commit e7a9757 fixes this issue.
from rumai.
Finally fixed. Grreeaatt !
Thank goes to sunaku.
from rumai.
Related Issues (10)
- client order not preserved by view arrangements HOT 2
- Layouts not working? HOT 13
- revisit mutex locks in IXP impl HOT 1
- FreeBSD: can't convert String into Integer (TypeError) in transport.rb HOT 5
- FreeBSD: illegal fcall type: 0 HOT 3
- FreeBSD: thread 0x800f65358 tried to join itself> HOT 7
- add nudge() and grow() to Rumai::Client HOT 1
- create Button class HOT 1
- Illegal fcall type HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rumai.