# Cannot change FMS locale in Ubuntu

**URL:** <https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931>\
**Category:** Questions\
**Created:** [May 29, 2022, 3:25pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931 "2022-05-29T15:25:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [May 29, 2022, 3:25pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/1 "2022-05-29T15:25:51Z")

</div>

Hello FM Soup !

Has anyone managed to change the FMS locale settings in Ubuntu ?

I have successfully managed to change the system's locale preferences using

`sudo locale-gen el_GR.UTF-8`

then

`sudo update-locale el_GR.UTF-8`

and last

`dpkg-reconfigure locales`

Rebooted the Ubuntu VM and the locale is properly set to Greek as expected. The problem is that FileMaker Server is still on US locale

I am frequently using export records -\> import records when copying data among tables, which is obviously going to be a big problem if I don't set the locale properly first.

Any ideas ?

---

<div class="post-metadata">

**Author:** ![planteg](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/planteg/32/627_2.png) [@planteg](https://the.fmsoup.org/u/planteg)\
**Post date:** [May 29, 2022, 6:39pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/2 "2022-05-29T18:39:59Z")

</div>

Hello @stathis ,

please state your Ubuntu version as well as FMS version in order for the members to try in a similar environment.

Thanks

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [May 29, 2022, 6:56pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/3 "2022-05-29T18:56:13Z")

</div>

Hello @planteg

Valid observation.

FMS: 19.4.2.204  
Ubuntu: VERSION="18.04.6 LTS (Bionic Beaver)"

---

<div class="post-metadata">

**Author:** ![CamelCase](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@CamelCase](https://the.fmsoup.org/u/CamelCase)\
**Post date:** [May 31, 2022, 7:25pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/4 "2022-05-31T19:25:38Z")

</div>

What method are you using to detect the system locale? Get ( SystemLocaleElements )?

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [May 31, 2022, 8:30pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/5 "2022-05-31T20:30:33Z")

</div>

Yeap, running on server of course

---

<div class="post-metadata">

**Author:** ![CamelCase](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@CamelCase](https://the.fmsoup.org/u/CamelCase)\
**Post date:** [June 1, 2022, 6:28am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/6 "2022-06-01T06:28:48Z")

</div>

I'll test on my end and post back here with the results, but that might not be until tomorrow. Did you reboot the server after changing the locale?

---

<div class="post-metadata">

**Author:** ![CamelCase](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@CamelCase](https://the.fmsoup.org/u/CamelCase)\
**Post date:** [June 1, 2022, 6:53am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/7 "2022-06-01T06:53:03Z")

</div>

I ran a quick test, setting the local to de\_DE and it seems I can partially reproduce the issue. The language does get changed, but the decimal separator doesn't.

I ran

sudo locale-gen de\_DE.UTF-8  
sudo update-locale de\_DE.UTF-8  
localectl set-locale LANG=de\_DE.UTF-8 LANGUAGE="de\_DE:de"

and then rebooted just in case

after this,

locale -k LC\_NUMERIC

returns

decimal\_point=","  
thousands\_sep="."  
grouping=3;3  
numeric-decimal-point-wc=44  
numeric-thousands-sep-wc=46  
numeric-codeset="UTF-8"

whereas Get ( SystemLocaleElements ) lists returns LocaleID.IDStr = German but Num.Decimal is still "."

```auto
{
   "APIVers" : 1,
   "Currency" : 
   {
   	"Leading" : true,
   	"Symbol" : "$"
   },
   "Date" : 
   {
   	"DMQ" : 
   	{
   		"1stDayOfWeek" : 1,
   		"DaysOfWeek" : 
   		{
   			"AbbrvList" : 
   			[
   				"Sun",
   				"Mon",
   				"Tue",
   				"Wed",
   				"Thu",
   				"Fri",
   				"Sat"
   			],
   			"NameList" : 
   			[
   				"Sunday",
   				"Monday",
   				"Tuesday",
   				"Wednesday",
   				"Thursday",
   				"Friday",
   				"Saturday"
   			]
   		},
   		"Months" : 
   		{
   			"AbbrvList" : 
   			[
   				"Jan",
   				"Feb",
   				"Mar",
   				"Apr",
   				"May",
   				"Jun",
   				"Jul",
   				"Aug",
   				"Sep",
   				"Oct",
   				"Nov",
   				"Dec"
   			],
   			"NameList" : 
   			[
   				"January",
   				"February",
   				"March",
   				"April",
   				"May",
   				"June",
   				"July",
   				"August",
   				"September",
   				"October",
   				"November",
   				"December"
   			]
   		},
   		"Quarters" : 
   		{
   			"AbbrvList" : 
   			[
   				"Q1",
   				"Q2",
   				"Q3",
   				"Q4"
   			],
   			"NameList" : 
   			[
   				"1st Quarter",
   				"2nd Quarter",
   				"3rd Quarter",
   				"4th Quarter"
   			]
   		}
   	},
   	"DateNums" : 
   	{
   		"0d" : false,
   		"0m" : false,
   		"YYyy" : true
   	},
   	"DateOrderID" : 0,
   	"DateOrderName" : "MDY",
   	"MDY" : 
   	{
   		"ElementArray" : 
   		{
   			"NameList" : 
   			[
   				"M#",
   				"D#",
   				"D$",
   				"D$"
   			],
   			"SepList" : 
   			[
   				" ",
   				" ",
   				", ",
   				""
   			]
   		},
   		"MustUseLocalesSep" : false
   	},
   	"Sep" : "/"
   },
   "LocaleID" : 
   {
   	"IDNum" : 25,
   	"IDStr" : "German",
   	"ISOLangCode" : "de",
   	"LID" : "German",
   	"Name" : "German"
   },
   "Misc" : 
   {
   	"Active" : true,
   	"Metric" : false
   },
   "Num" : 
   {
   	"1000s" : ",",
   	"Decimal" : ".",
   	"Lead0" : true
   },
   "Text" : 
   {
   	"SQuotLead" : "“",
   	"SQuotTrail" : "”",
   	"Sep" : ","
   },
   "Time" : 
   {
   	"12h" : true,
   	"HMS" : 
   	{
   		"0h" : false,
   		"24h" : "",
   		"Seconds" : false
   	},
   	"NightDay" : 
   	{
   		"12hSuffix" : true,
   		"amStr" : " AM",
   		"pmStr" : " PM"
   	},
   	"Sep" : ":"
   }
}

```

---

<div class="post-metadata">

**Author:** ![samfmp](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@samfmp](https://the.fmsoup.org/u/samfmp)\
**Post date:** [June 1, 2022, 9:32am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/8 "2022-06-01T09:32:18Z")

</div>

Does FMS support Greek?

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [June 1, 2022, 11:04am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/9 "2022-06-01T11:04:02Z")

</div>

Yes it does.

I also tried en\_GB and German, just to exclude the Greek language

At this moment I just want to know if anyone has managed to get other than US locale in a Linux installation, so no need to focus on the language.

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [June 1, 2022, 11:06am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/10 "2022-06-01T11:06:47Z")

</div>

Nice one, never noticed the LocaleID.IDStr, will check now to check whether I get the same result

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [June 11, 2022, 7:54pm UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/11 "2022-06-11T19:54:21Z")

</div>

How did you change the locale ? Even for the LocaleID.IDStr ?

I am getting the same with el\_GR locale. Should I try another locale ?

```auto
{
	"APIVers" : 1,
	"Currency" : 
	{
		"Leading" : true,
		"Symbol" : "$"
	},
	"Date" : 
	{
		"DMQ" : 
		{
			"1stDayOfWeek" : 1,
			"DaysOfWeek" : 
			{
				"AbbrvList" : 
				[
					"Sun",
					"Mon",
					"Tue",
					"Wed",
					"Thu",
					"Fri",
					"Sat"
				],
				"NameList" : 
				[
					"Sunday",
					"Monday",
					"Tuesday",
					"Wednesday",
					"Thursday",
					"Friday",
					"Saturday"
				]
			},
			"Months" : 
			{
				"AbbrvList" : 
				[
					"Jan",
					"Feb",
					"Mar",
					"Apr",
					"May",
					"Jun",
					"Jul",
					"Aug",
					"Sep",
					"Oct",
					"Nov",
					"Dec"
				],
				"NameList" : 
				[
					"January",
					"February",
					"March",
					"April",
					"May",
					"June",
					"July",
					"August",
					"September",
					"October",
					"November",
					"December"
				]
			},
			"Quarters" : 
			{
				"AbbrvList" : 
				[
					"Q1",
					"Q2",
					"Q3",
					"Q4"
				],
				"NameList" : 
				[
					"1st Quarter",
					"2nd Quarter",
					"3rd Quarter",
					"4th Quarter"
				]
			}
		},
		"DateNums" : 
		{
			"0d" : true,
			"0m" : true,
			"YYyy" : true
		},
		"DateOrderID" : 0,
		"DateOrderName" : "MDY",
		"MDY" : 
		{
			"ElementArray" : 
			{
				"NameList" : 
				[
					"M#",
					"D#",
					"D$",
					"D$"
				],
				"SepList" : 
				[
					" ",
					" ",
					", ",
					""
				]
			},
			"MustUseLocalesSep" : false
		},
		"Sep" : "/"
	},
	"LocaleID" : 
	{
		"IDNum" : 21,
		"IDStr" : "English",
		"ISOLangCode" : "en",
		"LID" : "English",
		"Name" : "English"
	},
	"Misc" : 
	{
		"Active" : true,
		"Metric" : false
	},
	"Num" : 
	{
		"1000s" : ",",
		"Decimal" : ".",
		"Lead0" : true
	},
	"Text" : 
	{
		"SQuotLead" : "“",
		"SQuotTrail" : "”",
		"Sep" : ","
	},
	"Time" : 
	{
		"12h" : true,
		"HMS" : 
		{
			"0h" : true,
			"24h" : "",
			"Seconds" : false
		},
		"NightDay" : 
		{
			"12hSuffix" : true,
			"amStr" : " AM",
			"pmStr" : " PM"
		},
		"Sep" : ":"
	}
}

```

---

<div class="post-metadata">

**Author:** ![CamelCase](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@CamelCase](https://the.fmsoup.org/u/CamelCase)\
**Post date:** [June 13, 2022, 8:35am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/12 "2022-06-13T08:35:56Z")

</div>

Hi @stathis,

I just tested with Greek myself, and it did not work the same as German. Ubuntu command line "locale" show that Greek is the system language for Ubuntu, but Get ( SystemLocaleElements ) still lists English.

I can speculate that in reality, FileMaker Server may not actually handle all locales for Get ( SystemLocaleElements ), only for languages into which FileMaker Server has been localized.

I've done a few different quick tests of how Get ( SystemLocaleElements ) actually works, not just on Linux and not just on Server, and I have seem some other signs that it does not actually always work the way at least I would suspect. At this point, I don't really have a pressing need to figure this out myself, so I am not going to spend that time on it, but I have seen indications that might mean that Get ( SystemLocaleElements ) may in reality not always "mean" the language of the operating system.

Perhaps more important from a short-term practical point of view, I am not sure what the reason would be for you to need to have Get ( SystemLocaleElements ) on the server set to Greek. Or in any case, there may be other ways of getting the end result you are looking for. That is probably a separate discussion.

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [June 13, 2022, 8:51am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/13 "2022-06-13T08:51:01Z")

</div>

Hello @CamelCase !

Thank you for your time testing it.

The reason behind it is the .mer export and number format. In Greek locale .mer uses semicolon as a separator and number thou is dot, decimals is comma.

I have used a lot of export / import which would mean I would need to check all files !

All the above has been reported to Claris, thank you for your help

Best  
Stathis

---

<div class="post-metadata">

**Author:** ![CamelCase](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@CamelCase](https://the.fmsoup.org/u/CamelCase)\
**Post date:** [June 13, 2022, 10:32am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/14 "2022-06-13T10:32:11Z")

</div>

I normally rely on File options \> Data Entry: Always use file's save settings to control this.  
Though more often than not, I won't even necessarily use the built-in import/export script steps, but rather script the whole thing myself. Unless very many records are involved, I sacrifice performance and easy of programming to get better control.

If you have a lot of FileMaker files, you can more or less automate the checking by using Save a Copy as XML and then parsing the File Options information by parsing the XML.  
Relying on each individual file's settings is certainly far from perfect, but given what we have to work with right now, it may still be the least painful/most reliable option...

---

<div class="post-metadata">

**Author:** ![stathis](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@stathis](https://the.fmsoup.org/u/stathis)\
**Post date:** [June 13, 2022, 10:48am UTC](https://the.fmsoup.org/t/cannot-change-fms-locale-in-ubuntu/2931/15 "2022-06-13T10:48:18Z")

</div>

Yeap, especially now that the Save File As XML is supported in server.

When applicable, I always prefer the export/import records on server, the performance is just unparalleled.

There are so many aspects that server locale is involved: Data API, ODBC, text representation of dates or numbers.

I am very positive this will be fixed soon enough
