On Fri, 27 Nov 2009, Mindaugas Kavaliauskas wrote:

Hi,

> BTW, that is difference of HB_SETCODEPAGE(), HB_CDPSELECT(),
> and SET(_SET_CODEPAGE).

Official method for HVM codepage setting is:
   SET( _SET_CODEPAGE [, <cNewCP> ] ) -> <cPrevCP>

I added it at:

   2008-09-13 18:49 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
     * harbour/include/set.ch
     * harbour/include/hbset.h
       + added _SET_CODEPAGE which works like _SET_LANGUAGE giving common
         interface


HB_SETCODEPAGE() and HB_CDPSELECT() make exactly the same job.
HB_SETCODEPAGE() was originally added by Alex with initial CDP API version:

   2002-10-24 16:05 UTC+0300 Alexander Kresin <[email protected]>
     + source/rtl/cdpapi.c
       + added codepages api source
         Functions HB_SETCODEPAGE() and HB_TRANSLATE() are implemented

At the beginning of this year Viktor added HB_CDPSELECT() as synonym of
HB_SETCODEPAGE():

   2009-01-14 16:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
     * source/rtl/cdpapi.c
       + HB_CDPSELECT() which does the same as HB_SETCODEPAGE(), but
         aligns well with function naming rules and namespace.
         HB_SETCODEPAGE() still works, but usage is not recommended.

Maybe we should cover HB_SETCODEPAGE() and HB_CDPSELECT() by some legacy
macro.
We have similar situation with SET( _SET_LANGUAGE ) and HB_LANGSELECT()

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to