1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/vendor/POCO/Foundation/wcelibcex-1.0/src/wce_setlocale.c
Sandu Liviu Catalin 4a6bfc086c Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface.
Deprecated the external module API. It was creating more problems than solving.
Removed most built-in libraries in favor of system libraries for easier maintenance.
Cleaned and secured code with help from static analyzers.
2021-01-30 08:51:39 +02:00

57 lines
2.1 KiB
C

/*
* $Id: wce_setlocale.c 20 2006-11-18 17:00:30Z mloskot $
*
* Defines setlocale() function with dummy implementation.
*
* Created by Mateusz Loskot (mloskot@loskot.net)
*
* Copyright (c) 2006 Mateusz Loskot (mloskot@loskot.net)
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom
* the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
* THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* MIT License:
* http://opensource.org/licenses/mit-license.php
*
*/
/*******************************************************************************
* wceex_setlocale - dummy setlocale() function
*
* Description:
*
* C library on Windows CE includes <locale.h> file with prototype of
* setlocale() function but no implementation is available.
*
* Currently, wceex_setlocale() function does not provide any implementation.
* It does ALWAYS return empty string.
*
* TODO: Consider to implement working version of setlocale() based on
* GetLocaleInfo and SetLocaleInfo() calls from Windows CE API.
* Return:
*
* The wceex_setlocale() function ALWAYS returns empty string.*
*
*******************************************************************************/
char* wceex_setlocale(int category, const char* locale)
{
return "";
}