---
name: "SetLocaleInfoA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetLocaleInfoA"
---

# SetLocaleInfoA(3w)

## NAME

**SetLocaleInfoA** (KERNEL32.@)

## SYNOPSIS

BOOL SetLocaleInfoA\
  (\
   LCID   *lcid*,\
   LCTYPE *lctype*,\
   LPCSTR *data*\
  )

## DESCRIPTION

Set information about an aspect of a locale.

## PARAMS

*lcid* **\[In\]**  **LCID** of the locale.

*lctype* **\[In\]**  **LCTYPE\_** flags from **"winnls.h"**.

*data* **\[In\]**  Information to set.

## RETURNS

**Success:** **TRUE**. The information given will be returned by **[GetLocaleInfoA(3w)](/GetLocaleInfoA/3w.md)** whenever it is called without **LOCALE\_NOUSEROVERRIDE**.

**Failure:** **FALSE**. Use **[GetLastError(3w)](/GetLastError/3w.md)** to determine the cause.

## NOTES

**-** Values are only be set for the current user locale; the system locale settings cannot be changed.

**-** Any settings changed by this call are lost when the locale is changed by the control panel (in Wine, this happens every time you change **LANG**).

**-** The native implementation of this function does not check that *lcid* matches the current user locale, and simply sets the new values. Wine warns you in this case, but behaves the same.

## IMPLEMENTATION

Declared in **"winnls.h"**.

Implemented in **"dlls/kernel32/locale.c"**.

Debug channel **"nls"**.
