Hi Ander,

We hoped this was a portable way to put UTF-8 string literals in our
source code - turns out it isn't. What is the system language of your
Windows installation? Apparently it uses some form of multi-byte
encoding.

To fix this, add the following in WAbstractItemView.C:

namespace {
const unsigned char pbFirst[] = {0xc2, 0xab, ' ', 'F', 'i', 'r', 's', 't', 0};
const unsigned char pbPrevious[] = {0xe2, 0x80, 0xb9, ' ',
  'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 0};
const unsigned char pbNext[] = {'N', 'e', 'x', 't', ' ', 0xe2, 0x80, 0xba, 0};
const unsigned char pbLast[] = {'L', 'a', 's', 't', ' ', 0xc2, 0xbb, 0};
}

And replace the constructors of the buttons as follows:
    firstButton_ = new WPushButton(WString::fromUTF8((const char
*)pbFirst), this);
(do the same for previous, next and last).

Thank you for reporting this issue, I'll make sure this is included in
the next release.

Best regards,
Wim.

2010/6/14 Ander.x <[email protected]>:
> hey, guys,
> I downloaded wt 3.1.3, and using VC2005 compiling.
> Found an error here:
>
> file:   WAbstractItemView.C
>
> class DefaultPagingBar : public WContainerWidget
> {
> public:
>   DefaultPagingBar(WAbstractItemView *view)
>     : view_(view)
>   {
>
>
>           nextButton_ = new WPushButton(WString::fromUTF8("Next 鈥?"), this);
> // missing the right quotation mark.
>
>
>
>
> br,
> Anders Li
>
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to