On Thu, 01 Apr 2010, vatzct wrote:

Hi,

> 01.04.2010 11:42, Horodyski Marek (PZUZ) написав(ла):
> >hb_SetCodePage( 'UA866')
> Form Changelog:
> NOTE to users: Use HB_CDPSELECT() or SET( _SET_CODEPAGE ) instead.

Not "instead".
This are two different things.
   SET( _SET_CODEPAGE, <cCPID> )
choose codepage mdoule for character encoding and sorting and
   SET( _SET_LANG, <cLANGID> )
choose langue module with natinal strings so you have to use both,
i.e.:

   PROC MAIN()
      LOCAL i
      REQUEST HB_CODEPAGE_UA866
      REQUEST HB_LANG_UA866
      SET( _SET_CODEPAGE, "UA866" )
      SET( _SET_LANGUAGE, "UA866" )
      ? "LANG:", hb_langName()
      ? "CP:", hb_cdpInfo()
      FOR i := 1 TO 12
         ? CMonth( SToD( "2010" + strzero( i, 2 ) + "01" ) )
      NEXT
   RETURN

HB_CDPSELECT() is the same as SET( _SET_CODEPAGE ) and
HB_LANGSELECT() is the same as SET( _SET_LANGUAGE )

BTW do not share indexes with xHarbour application using Ukrainian
CPs. In xHarbour codepage module is broken and for some languages
like Ukrainian it uses corrupted collation order.

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

Reply via email to