Hi!
The following code sorts an "A", an
"OEM Á" (accented "A"), and a "B" on a
single table.
Using ES850, it sorts "A", "Á", and
"B". Using SK852, it sorts "Á", "A" and
"B" (accented "Á" becomes first). Is
it the spected behaviour?
Thanks in advance.
Atte.
Vic
REQUEST HB_CODEPAGE_ES850
REQUEST HB_CODEPAGE_SK852
REQUEST DBFCDX
PROCEDURE MAIN
RDDSETDEFAULT( "DBFCDX" )
Test( "ES850" )
Test( "SK852" )
RETURN
PROCEDURE Test( cCodePage )
HB_SETCODEPAGE( cCodePage )
FERASE( "TEST.cdx" )
DBCREATE( "TEST", { { "NAME", "C", 10, 0 } } )
USE TEST CODEPAGE cCodePage
INDEX ON NAME TAG NAME TO TEST
APPEND BLANK
REPLACE NAME WITH CHR( 65 ) // A
APPEND BLANK
REPLACE NAME WITH CHR( 181 ) // OEM A'
APPEND BLANK
REPLACE NAME WITH CHR( 66 ) // B
? "Testing ", cCodepage, ""
GO TOP
?? NAME
SKIP
?? NAME
SKIP
?? NAME
CLOSE ALL
RETURN
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers