Wrong charset when mounting NFS share on OpenBSD
Clash Royale CLAN TAG#URR8PPP
I have a NFS server running on a Fedora 29 machine and other machines on my network (an Ubuntu box and a Debian VM) mount it properly.
But when I mount it on an OpenBSD VM, the charset is wrong, for example:
openBSD# ls -la a*o
-rw-rw-r-- 1 renan renan 0 Mar 4 2019 a????o
The ????
should be 'çã' (the file name is ação
).
My command line on the OpenBSD was mount -o tcp -t nfs 192.168.1.7:/mnt/data /mnt/data
.
What to do? I went through mount
's man page and there is no way to set the charset to use, apparently.
nfs openbsd
add a comment |
I have a NFS server running on a Fedora 29 machine and other machines on my network (an Ubuntu box and a Debian VM) mount it properly.
But when I mount it on an OpenBSD VM, the charset is wrong, for example:
openBSD# ls -la a*o
-rw-rw-r-- 1 renan renan 0 Mar 4 2019 a????o
The ????
should be 'çã' (the file name is ação
).
My command line on the OpenBSD was mount -o tcp -t nfs 192.168.1.7:/mnt/data /mnt/data
.
What to do? I went through mount
's man page and there is no way to set the charset to use, apparently.
nfs openbsd
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12
add a comment |
I have a NFS server running on a Fedora 29 machine and other machines on my network (an Ubuntu box and a Debian VM) mount it properly.
But when I mount it on an OpenBSD VM, the charset is wrong, for example:
openBSD# ls -la a*o
-rw-rw-r-- 1 renan renan 0 Mar 4 2019 a????o
The ????
should be 'çã' (the file name is ação
).
My command line on the OpenBSD was mount -o tcp -t nfs 192.168.1.7:/mnt/data /mnt/data
.
What to do? I went through mount
's man page and there is no way to set the charset to use, apparently.
nfs openbsd
I have a NFS server running on a Fedora 29 machine and other machines on my network (an Ubuntu box and a Debian VM) mount it properly.
But when I mount it on an OpenBSD VM, the charset is wrong, for example:
openBSD# ls -la a*o
-rw-rw-r-- 1 renan renan 0 Mar 4 2019 a????o
The ????
should be 'çã' (the file name is ação
).
My command line on the OpenBSD was mount -o tcp -t nfs 192.168.1.7:/mnt/data /mnt/data
.
What to do? I went through mount
's man page and there is no way to set the charset to use, apparently.
nfs openbsd
nfs openbsd
asked Mar 4 at 23:31
RenanRenan
14.6k65679
14.6k65679
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12
add a comment |
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12
add a comment |
1 Answer
1
active
oldest
votes
From the locale manpage:
Programs in the OpenBSD base system ignore the locale except for the character encoding, and it is not recommended to use any of these variables except that the following non-default setting is supported as an option:
export LC_CTYPE=en_US.UTF-8
Then, setting LC_CTYPE
to be pt_BR.UTF-8
works and I get the correct filenames now.
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504378%2fwrong-charset-when-mounting-nfs-share-on-openbsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the locale manpage:
Programs in the OpenBSD base system ignore the locale except for the character encoding, and it is not recommended to use any of these variables except that the following non-default setting is supported as an option:
export LC_CTYPE=en_US.UTF-8
Then, setting LC_CTYPE
to be pt_BR.UTF-8
works and I get the correct filenames now.
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
add a comment |
From the locale manpage:
Programs in the OpenBSD base system ignore the locale except for the character encoding, and it is not recommended to use any of these variables except that the following non-default setting is supported as an option:
export LC_CTYPE=en_US.UTF-8
Then, setting LC_CTYPE
to be pt_BR.UTF-8
works and I get the correct filenames now.
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
add a comment |
From the locale manpage:
Programs in the OpenBSD base system ignore the locale except for the character encoding, and it is not recommended to use any of these variables except that the following non-default setting is supported as an option:
export LC_CTYPE=en_US.UTF-8
Then, setting LC_CTYPE
to be pt_BR.UTF-8
works and I get the correct filenames now.
From the locale manpage:
Programs in the OpenBSD base system ignore the locale except for the character encoding, and it is not recommended to use any of these variables except that the following non-default setting is supported as an option:
export LC_CTYPE=en_US.UTF-8
Then, setting LC_CTYPE
to be pt_BR.UTF-8
works and I get the correct filenames now.
answered Mar 5 at 0:14
RenanRenan
14.6k65679
14.6k65679
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
add a comment |
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
1
1
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
Excellent you pulled it off as I am not in OpenBSD anymore. +1. I think there was a "standard" place/file to define that.
– Rui F Ribeiro
Mar 5 at 0:17
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504378%2fwrong-charset-when-mounting-nfs-share-on-openbsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you changed it to a BR locale?
– Rui F Ribeiro
Mar 4 at 23:40
@RuiFRibeiro setting the locale to a pt_BR one worked. I will write a more thorough answer.
– Renan
Mar 5 at 0:12