Author Topic: Setting man help on linux (mageia8)  (Read 3530 times)

Offline Suryavarman

  • Multiple posting newcomer
  • *
  • Posts: 81
    • Suryavarman
Setting man help on linux (mageia8)
« on: March 11, 2021, 09:40:10 pm »
To set the man documentation i have follow this help:
http://wiki.codeblocks.org/index.php/Help_plugin

Link in the tutorial i have add man with command line man:/usr/share/man


The Man/Html pages viewer opens with:
- Man page: wstring
- the text: Man page not found

If i try in a terminal :
man wstring

The aswer is:
Code
std::experimental::filesystem::path::string,wstring,u8string,...(3)                                       C++ Standard Libary                                      std::experimental::filesystem::path::string,wstring,u8string,...(3)

NAME
       std::experimental::filesystem::path::string,wstring,u8string,... - std::experimental::filesystem::path::string,wstring,u8string,...

Synopsis
          template< class CharT, class Traits = std::char_traits<CharT>,

                    class Alloc = std::allocator<CharT> >                (1) (filesystem TS)
          std::basic_string<CharT,Traits,Alloc>

              string( const Alloc& a = Alloc() ) const;
          std::string string() const;
          std::wstring wstring() const;
          std::string u8string() const;                                  (2) (filesystem TS)
          std::u16string u16string() const;
          std::u32string u32string() const;

          Returns the internal pathname in native pathname format, converted to specific
          string type. Conversion, if any, is specified in todo.

          1) All memory allocations are performed by a.
          2) The encoding in the case of u8string() is always UTF-8.

Parameters
          (none)

Return value
          The internal pathname in native pathname format, converted to specified string type.

Exceptions
          (none)

Example
       // Run this code

        #include <cstdio>
        #include <clocale>
        #include <fstream>
        #include <iostream>
        #include <experimental/filesystem>
        namespace fs = std::experimental::filesystem;

        int main()
        {
            std::setlocale(LC_ALL, "en_US.utf8");
            std::locale::global(std::locale("en_US.utf8"));

            fs::path p = fs::u8path(u8"要らない.txt");

            // native string representation can be used with OS APIs
            std::ofstream(p) << "File contents"; // this uses operator string()
            if(std::FILE* f = std::fopen(p.c_str(), "r")) {
                int ch;
                while((ch=fgetc(f))!= EOF) putchar(ch);
                std::fclose(f);
            }



I have try directly with the cppreference url :
https://en.cppreference.com/w/cpp/$(keyword)

Like a command line:
firefox https://en.cppreference.com/w/cpp/$(keyword)

doesn't work at all.


Here my CB version:
Name             : Code::Blocks
Version          : svn-r12286
SDK Version      : 2.6.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.1.4 (Unicode: wchar_t, debug level: 0),
compiled at Jan  7 2021 23:30:48

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.8.
« Last Edit: March 11, 2021, 09:42:04 pm by Suryavarman »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Setting man help on linux (mageia8)
« Reply #1 on: March 11, 2021, 10:01:48 pm »
What happens if you right click -> Locate in -> <your help>?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Suryavarman

  • Multiple posting newcomer
  • *
  • Posts: 81
    • Suryavarman
Re: Setting man help on linux (mageia8)
« Reply #2 on: March 11, 2021, 10:22:08 pm »
No  :(, it doesn't work.I have the same errors.

« Last Edit: March 11, 2021, 11:26:26 pm by Suryavarman »