This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 256054
Collapse All | Expand All

(-)a/cnd.completion/src/org/netbeans/modules/cnd/completion/doxygensupport/ManDocumentation.java (-1 / +5 lines)
Lines 273-279 Link Here
273
            // Current host locale is used here, because user possibly wants to see man pages
273
            // Current host locale is used here, because user possibly wants to see man pages
274
            // in locale of his development host, not in remote's host one.
274
            // in locale of his development host, not in remote's host one.
275
            final String DOT_UTF8 = ".UTF-8";  // NOI18N
275
            final String DOT_UTF8 = ".UTF-8";  // NOI18N
276
            exitStatus = NativeProjectSupport.execute(np, "man", new String[]{"MANWIDTH=" + Man2HTML.MAX_WIDTH, "LANG=" + Locale.getDefault().toString().trim().replace(DOT_UTF8, "") + DOT_UTF8}, "-S2:3", name); // NOI18N
276
            String lang = Locale.getDefault().toString().trim();
277
            if (lang.contains(DOT_UTF8)) {
278
                lang = lang.replace(DOT_UTF8, "") + DOT_UTF8;
279
            }
280
            exitStatus = NativeProjectSupport.execute(np, "man", new String[]{"MANWIDTH=" + Man2HTML.MAX_WIDTH, "LANG=" + lang}, "-S2:3", name); // NOI18N            
277
        }
281
        }
278
        StringReader sr;
282
        StringReader sr;
279
        if (exitStatus != null) {
283
        if (exitStatus != null) {

Return to bug 256054