Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Pete Batard
On 2012.05.23 14:08, Hans de Goede wrote: > Right, going with option 2 is 100% ok with me :) With the final votes in, I went ahead and pushed a commit that shall ensure our sources are UTF-8. Turns out that we only had 2 files that were actually UTF-8 (3 if you count AUTHORS: core.c and sync.c)

Re: [Libusbx-devel] Proposed topology API and USB Location ID

2012-05-23 Thread Orin Eman
On Wed, May 23, 2012 at 4:43 AM, Pete Batard wrote: > On 2012.05.23 03:17, Yves Arrouye wrote: > > I double-checked the actual OS X API (the 32 bits comes from one of > > their samples). It seems like the underlying object is actually an > > OSNumber, which is a wrapper for a kernel number of 8,

Re: [Libusbx-devel] Proposed topology API and USB Location ID

2012-05-23 Thread Pete Batard
On 2012.05.23 12:43, Pete Batard wrote: > I think I had a reference on how the hash from the Windows device > interface path is actually generated. I'll see if I can dig that up, as > someone actually went the trouble of reverse engineering it and it's > quite insightful... Actually, now that I ha

Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Hans de Goede
Hi, On 05/23/2012 01:09 PM, Pete Batard wrote: > On 2012.05.23 11:25, Xiaofan Chen wrote: >>> I think the problem is the © '(c)' sign in the headers, I see >>> 2 possible solutions: >>> 1) Stick to ASCII only, so replace '©' with '(c)' >>> 2) Convert the files to UTF-8 in our git repo and tarbals

Re: [Libusbx-devel] Proposed topology API and USB Location ID

2012-05-23 Thread Pete Batard
On 2012.05.23 03:17, Yves Arrouye wrote: > I double-checked the actual OS X API (the 32 bits comes from one of > their samples). It seems like the underlying object is actually an > OSNumber, which is a wrapper for a kernel number of 8, 16, 32 or 64 OK, then at the very least we'll need something

Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Xiaofan Chen
On Wed, May 23, 2012 at 6:25 PM, Xiaofan Chen wrote: > On Wed, May 23, 2012 at 5:30 PM, Hans de Goede wrote: >> Hi, >> >> In the Fedora libusbx packages we ship example/*.c as part of the >> development documentation. ATM we run this script on these files >> because they are not UTF-8: >> >> for

Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Kustaa Nyholm
+1 for UTF-8 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint securi

Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Pete Batard
On 2012.05.23 11:25, Xiaofan Chen wrote: >> I think the problem is the © '(c)' sign in the headers, I see >> 2 possible solutions: >> 1) Stick to ASCII only, so replace '©' with '(c)' >> 2) Convert the files to UTF-8 in our git repo and tarbals >> >> So what do you think is the best solution? > > I

Re: [Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Xiaofan Chen
On Wed, May 23, 2012 at 5:30 PM, Hans de Goede wrote: > Hi, > > In the Fedora libusbx packages we ship example/*.c as part of the > development documentation. ATM we run this script on these files > because they are not UTF-8: > > for i in examples/*.c; do >     iconv -f ISO-8859-1 -t UTF-8 -o $i.

[Libusbx-devel] Making example/*.c UTF-8

2012-05-23 Thread Hans de Goede
Hi, In the Fedora libusbx packages we ship example/*.c as part of the development documentation. ATM we run this script on these files because they are not UTF-8: for i in examples/*.c; do iconv -f ISO-8859-1 -t UTF-8 -o $i.new $i touch -r $i $i.new mv $i.new $i done We would like