Low level function in UNICODE

Harbour, MingW related news.

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Low level function in UNICODE

Post by Pablo César » Thu Oct 23, 2014 2:55 pm

Important to know who is working with UNICODE. Now hb_fopen works with both and also opening with non-shared mode.
ChangeLog wrote:2014-06-27 12:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
  * src/common/hbfopen.c
    * use _wfopen() instead of fopen() in MS-Windows UNICODE builds of
      hb_fopen(). It means that now hb_fopen() makes exactly the same file
      name conversions as hb_fs*() Harbour RTL functions, i.e. hb_fsOpen()

  * contrib/hbmxml/core.c
    ! fixed unnecessary conversions to UTF8 used for file names passed
      to hb_fopen()
Example:

hb_fopen( "sql_debug.log", "w" )
hb_fopen( "sql_debug.log", "a" )
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
bpd2000
Posts: 962
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 132 times
Been thanked: 43 times

Post by bpd2000 » Tue Oct 28, 2014 11:53 am

Thank you for tip
BPD
Convert Dream into Reality through HMG

User avatar
serge_girard
Posts: 1904
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 314 times
Been thanked: 74 times
Contact:

Post by serge_girard » Tue Oct 28, 2014 11:56 am

Thanks Pablo!

Serge

Javier Tovar
Posts: 1274
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Tue Oct 28, 2014 7:19 pm

Gracias Pablo César por el dato! :)

Saludos

Post Reply