Bug 236872 - bsdconfig: can't open file /usr/libexec/bsdconfig/*/INDEX.en_GB.UTF-8
Summary: bsdconfig: can't open file /usr/libexec/bsdconfig/*/INDEX.en_GB.UTF-8
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Devin Teske
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-29 09:23 UTC by Mateusz Piotrowski
Modified: 2020-03-18 20:18 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Piotrowski freebsd_committer 2019-03-29 09:23:27 UTC
I get unexpected output from bsdconfig(8). Here's the output of `(bsdconfig xxx; echo -------------------; locale)`:

```
awk: can't open file /usr/libexec/bsdconfig/*/INDEX.en_GB.UTF-8
 source line number 4
awk: can't open file /usr/local/libexec/bsdconfig/*/INDEX.en_GB.UTF-8
 source line number 4
awk: can't open file /usr/local/libexec/bsdconfig/*/INDEX
 source line number 4
bsdconfig: xxx: not found
Usage:
        bsdconfig [-h]
        bsdconfig command [-h]
        bsdconfig [OPTIONS] [command [OPTIONS]]

OPTIONS:
        -d         Provide lots of debugging info on standard-out when running.
        -D file    Send debugging info to file. If file begins with a plus-sign
                   debug info is sent to both standard-out and file (minus the
                   leading plus).
        -f file    Load file as script and then exit. If multiple occurrences,
                   program will only exit after last occurrence. If file is a
                   single dash (`-'), bsdconfig reads from standard input.
        -h         Print this usage statement and exit.
        -S         Secure X11 mode (implies `-X'). As root, always prompt-for
                   and validate sudo(8) username/password before starting.
        -X         Use Xdialog(1) in place of dialog(1).

COMMANDS:
        api                 console             defaultrouter       diskmgmt            docsinstall         dot
        groupadd            groupdel            groupedit           groupmgmt           hostname            includes
        kern_securelevel    mouse               mouse_disable       mouse_enable        mouse_flags         mouse_port
        mouse_type          nameservers         netdev              networking          packages            password
        security            startup             startup_misc        startup_rcadd       startup_rcconf      startup_rcdelete
        startup_rcvar       syscons_font        syscons_keymap      syscons_repeat      syscons_saver       syscons_screenmap
        syscons_ttys        timezone            ttys                useradd             userdel             useredit
        usermgmt            vt_font             vt_keymap           vt_repeat           vt_saver            vt_screenmap
        vt_ttys             wifi                wireless            wlan
-------------------
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_ALL=
```

I'm running FreeBSD 13.0-CURRENT r345416 GENERIC  amd64.
Comment 1 nti 2020-03-18 16:31:37 UTC
same with 12.1p2 and "INDEX.de_DE.UTF-8"

awk: can't open file /usr/libexec/bsdconfig/*/INDEX.de_DE.UTF-8
 source line number 4
Comment 2 Devin Teske freebsd_committer 2020-03-18 20:17:48 UTC
I have a fix over in my development branch that I have to merge over to FreeBSD

https://github.com/FrauBSD/pkgcenter/commit/88dc094894efbf83e1a85819548770623aa33d32#diff-eac8c62d6b772860e44e9ca1cbbadf08