code: def main(using_locale=('en_US', 'UTF-8',)):
      
      all_ucs = (ucs for ucs in
                 [unichr(val) for val in range(sys.maxunicode)]
                 if is_named(ucs) and isnt_combining(ucs))
  
      libc_name = ctypes.util.find_library('c')
      if not libc_name:
          raise ImportError("Can't find C library.")
  
      libc = ctypes.cdll.LoadLibrary(libc_name)
      libc.wcwidth.argtypes = [ctypes.c_wchar, ]
      libc.wcwidth.restype = ctypes.c_int
  
      assert getattr(libc, 'wcwidth', None) is not None
      assert getattr(libc, 'wcswidth', None) is not None
  
      locale.setlocale(locale.LC_ALL, using_locale)
  
      for ucs in all_ucs:
          try:
              _is_equal_wcwidth(libc, ucs)
          except AssertionError as err:
              print(err)
docs: Program entry point.
  
      Load the entire Unicode table into memory, excluding those that:
  
          - are not named (func unicodedata.name returns empty string),
          - are combining characters.
  
      Using ``locale``, for each unicode character string compare libc's
      wcwidth with local wcwidth.wcwidth() function; when they differ,
      report a detailed AssertionError to stdout.