Wrong charset when mounting NFS share on OpenBSD

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















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.










share|improve this question






















  • 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
















1















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.










share|improve this question






















  • 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














1












1








1








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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











1 Answer
1






active

oldest

votes


















2














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.






share|improve this answer


















  • 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












Your Answer








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
);



);













draft saved

draft discarded


















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









2














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.






share|improve this answer


















  • 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
















2














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.






share|improve this answer


















  • 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














2












2








2







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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













  • 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


















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?