BUG: "Code Page Not Found" Caused by SET CPCOMPILE to 0

Last reviewed: May 6, 1997
Article ID: Q113006
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a
  • Microsoft FoxPro for Windows, version 2.6
  • Microsoft FoxPro for MS-DOS, version 2.6
  • Microsoft FoxPro for UNIX, version 2.6

SYMPTOMS

When a SET CPCOMPILE TO 0 command is issued, the following error message occurs:

   Code page not found

In Visual FoxPro 5.0, the following error message appears:

   Code Page number is invalid

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.6 for Windows, FoxPro 2.6 for MS-DOS, and FoxPro 2.6 for UNIX. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Add the following line to CONFIG.FP or CONFIG.FPW:

          CODEPAGE=AUTO
    

  2. In the Command window, type "SET CPCOMPILE TO 0" (without the quotation marks).

    The following error message occurs.

           Code page not found
    

  3. In the Command window, type "COMPILE <Program> AS 0" (without the quotation marks).

Note that this works. An error message should be returned.

The SET CPCOMPILE command is new to FoxPro 2.6. This command specifies the code page for compiled programs.

Use SET CPCOMPILE to compile programs for a specific code page. The code page you specify with SET CPCOMPILE is used for programs compiled automatically by FoxPro, programs compiled using the Compile dialog box, and programs compiled with the COMPILE command. To override the code page you specified with SET CPCOMPILE, you can include the AS clause in the COMPILE command. For more information about COMPILE AS, see the FoxPro online Help.

The valid code pages that can be used with the SET CPCOMPILE TO command are listed below:

   Options     Language(s)                  Code pages
   -----------------------------------------------------------------------

   CZECH     Czech                          852, 895, 1250, 10029
   DUTCH     Dutch                          437, 850, 1252, 10000
   GENERAL   English, French, German,
             Modern Spanish, Portuguese
             and other Western European
             languages                      437, 620, 850, 852, 857, 861,
                                            865, 895, 1250, 1252, 1254,
                                            10000, 10029
   GREEK     Greek                          737, 1253, 10006
   HUNGARY   Hungarian                      852, 1250
   ICELAND   Icelandic                      437, 850, 861, 1252,
   NORDAN    Norwegian, Danish              437, 850, 865, 1252, 10000
   POLISH    Polish                         620, 852, 1250, 10029
   RUSSIAN   Russian                        866, 1251, 10007
   SLOVAK    Slovak                         852, 895, 1250, 10029
   SPANISH   *Traditional Spanish           437, 850, 1252, 10000
   SWEFIN    Swedish, Finnish               437, 850, 865, 1252, 10000
   TURKISH   Turkish                        857, 1254
   UNIQWT    Unique Weight                  437, 850, 1252, 10000


Additional query words: codepage
Keywords : buglist2.60 buglist5.00 FoxDos FoxWin FxprgIntl vfoxwin vfpbug5.0a kbbuglist
Version : 2.6 3.0 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.