Re: locale problems with STL (C++)

2010-07-01 Thread Ruben Pollan
I see no one in this list knows about that topic. Do someone knows where I can
ask? Are there another mailing list more focused on programming problems?

Thank you.

On 22:02, Sun 20 Jun 10, Ruben Pollan wrote:
 Hello,
 
 I'm new user of FreeBSD, using it as a desktop since a week. I develop an 
 small
 ncurses tool for manage todo lists[0]. Up to now I just used on GNU/Linux
 systems.
 
 I'm trying to compile it on FreeBSD, my original Makefiles seems to be too
 linux-like. I manage to compile it[1], but I have some problems with STL. I 
 read
 that there is a bug on libstdc++ and the locale[2] and gives a segfault, it
 seems to be still there.
 
 I try to compile it with stlport, it compiles without problems and runs 
 without
 segfault. But don't works with wide characters. I'm using locale to read files
 encoded on the local charset, like:
 
 wifstream file;
 file.imbue(locale());
 file.open(path);
 ...
 
 This code reads wrongly the wide characters. My system locale is:
 
 [mes...@blackspot:~]$ echo $LANG
 es_ES.UTF-8
 
 Am I missing something? I still don't understand well how locale works on 
 C++, it 
 worked well on GNU/Linux.
 
 Any suggestion?
 
 Thank you.
 
 
 
 [0] http://cauterized.net/~meskio/tudu/
 [1] I have a branch 'freebsd' on the git repository that compiles on freebsd,
 needs devel/stlport: http://gitorious.org/tudu/tudu
 [2] http://gcc.gnu.org/ml/libstdc++/2005-04/msg00021.html



-- 
Rubén Pollán  | jabber:mes...@jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Veo a un Mickey Mouse envejecido con 
pasamontañas tirando piedras a una oficina de 
disney al grito, Fui vuestro esclavo desde 
1928 y he conquistado para vosotros millones 
de corazones y ganado billones de dólares, 
¡AHORA DEJADME SER LIBRE!


pgpcC3DXePuik.pgp
Description: PGP signature


Re: thunderbird replacement

2010-06-21 Thread Ruben Pollan
On 09:11, Mon 21 Jun 10, Chip Camden wrote:
 On Jun 20 2010 08:28, Aryeh Friedman wrote:
  I currently am using mail/thunderbird as my mail reader and it is just
  doing the job very well (even with heavy use of filters) I use
  xfce4 on 8.1-PRERELEASE (updated and portmaster -Rafd'ed about 3 weeks
  ago) I am looking for a good replacement suggestions here are
  the minimal features I need:
  
  * Gmail support
  * Filtering (either internal or via external tool)
  * Multiple accounts (2)
  * Ability to send via local sendmail (my ISP blocks incoming port 25
  thats why I am using gmail)
  * Handle over 1000 messages a day
  * (optional) Plain text archives (unlike how Thunderbird does it)
 
 You can do all of the above with mutt.
 

I'm a big fan of mutt, it's my main mail client since a couple of years. But I'm
not sure if is a good replacement for someone use to thunderbird.

If you are searching for something in comand line, powerful and configurable I
recomend you mutt (plus fetchmain, procmail, crm114 and msmtp). You'll need some
time to configure it, but it's worth it.

If you want something graphical without that much of configuration I recomend
you mail/claws-mail. I didn't use it in years, but before I discover mutt for me
was the best mail client.

If you want to try other things I'm lately geeking with notmuch[0] a mail client
based on search trees and tags. Really interesting, but I didn't manage to
compile it on FreeBSD jet (I didn't try hard).


[0] http://notmuchmail.org/

-- 
Rubén Pollán  | jabber:mes...@jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Lo que pasa es que tienes envidia
por que las vocecitas me hablan a mi.


pgpm6SZYOob0h.pgp
Description: PGP signature


locale problems with STL (C++)

2010-06-20 Thread Ruben Pollan
Hello,

I'm new user of FreeBSD, using it as a desktop since a week. I develop an small
ncurses tool for manage todo lists[0]. Up to now I just used on GNU/Linux
systems.

I'm trying to compile it on FreeBSD, my original Makefiles seems to be too
linux-like. I manage to compile it[1], but I have some problems with STL. I read
that there is a bug on libstdc++ and the locale[2] and gives a segfault, it
seems to be still there.

I try to compile it with stlport, it compiles without problems and runs without
segfault. But don't works with wide characters. I'm using locale to read files
encoded on the local charset, like:

wifstream file;
file.imbue(locale());
file.open(path);
...

This code reads wrongly the wide characters. My system locale is:

[mes...@blackspot:~]$ echo $LANG
es_ES.UTF-8

Am I missing something? I still don't understand well how locale works on C++, 
it 
worked well on GNU/Linux.

Any suggestion?

Thank you.



[0] http://cauterized.net/~meskio/tudu/
[1] I have a branch 'freebsd' on the git repository that compiles on freebsd,
needs devel/stlport: http://gitorious.org/tudu/tudu
[2] http://gcc.gnu.org/ml/libstdc++/2005-04/msg00021.html

-- 
Rubén Pollán  | jabber:mes...@jabber.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Veo a un Mickey Mouse envejecido con 
pasamontañas tirando piedras a una oficina de 
disney al grito, Fui vuestro esclavo desde 
1928 y he conquistado para vosotros millones 
de corazones y ganado billones de dólares, 
¡AHORA DEJADME SER LIBRE!


pgpMEaXDcFzkl.pgp
Description: PGP signature